I think what you'll want to do is use the local x and y properties of
the mouse in the mouse's click event handler.
let's say you have a box with coordinates 0,0 to 10,10 doing one thing
and 10,0 to 20,10 doing something else; you would do something like:
<image click="onClickHandler(event)"/>
public function onClickHandler(e:MouseEvent):void {
if (e.localX >= 0 && e.localY >= 0 && e.localX <= 10 && e.localY
<= 10) {
...
}
}
hth,
matt horn
flex docs
> -----Original Message-----
> From: [email protected]
> [mailto:[EMAIL PROTECTED] On Behalf Of Mrinmoyee Sanyal
> Sent: Tuesday, March 06, 2007 2:16 AM
> To: [email protected]
> Subject: [flexcoders] image hotspots
>
> How do we create hotspots (linkable areas) in an image?
>
> -MS
>
>
>
>