nkukhar
nkukhar

Reputation: 2025

how to add click event on image area on flex?

Can i create img map and then add several click event? for example this img- I have 4 area for event top-left, top-right etc. How i can do this?

alt text

I need something like tag map on HTML.

Upvotes: 0

Views: 1676

Answers (2)

Wade Mueller
Wade Mueller

Reputation: 6059

Another approach would be to set the buttonMode to true on your image, add a click handler to it, then check if the point that got clicked is in any of the particular areas you care about. Hope that helps.

Upvotes: 1

Organiccat
Organiccat

Reputation: 5651

You should check out flexlib. I found this via a search and the result was already in StackOverflow: Image map in Flex So technically this question is a duplicate.

Upvotes: 0

Related Questions