I was just talking to someone here at 360Flex last night about this.
Basically he wanted a component that was the same as an image map in HTML,
so you could specify different areas with points, and a specific URL for
each one.

I'm going to work on trying to build this component, hopefully it will get
rolled into FlexLib in not too long...

Doug

On 3/6/07, Matt Horn <[EMAIL PROTECTED]> wrote:

  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] <flexcoders%40yahoogroups.com>
> [mailto:[email protected] <flexcoders%40yahoogroups.com>] On
Behalf Of Mrinmoyee Sanyal
> Sent: Tuesday, March 06, 2007 2:16 AM
> To: [email protected] <flexcoders%40yahoogroups.com>
> Subject: [flexcoders] image hotspots
>
> How do we create hotspots (linkable areas) in an image?
>
> -MS
>
>
>
>

Reply via email to