0
votes

Almost all of the Flex components have mouseOver/mouseOut or rollOver/rollOut events. Requires that these events called not the mouse cursor, but on the other element, such as Image or Bitmap.

For example, there is a Colomn Chart and image animations above it and I need to get the data (colomn value or index) when the image is over the column. If it were a component, then I would use hitTest. But what to do if it is chart?

2
An image over a column? huh? You should review the events.help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/… - The_asMan
I know that required event is not. I need to the image react to the chart component as well as in the mouse. - Astraport
sorry I just do not understand what you are saying with about an image - The_asMan

2 Answers

0
votes

Can't you tell the image/bitmap to not be mouseEnabled?

0
votes

i can't understand your question properly, eventhough i m trying this...

if you add mouselisteners on the chart and whenever the event is dispatch check..

position.x = event.currentTarget.mouseX;
position.y = event.currentTarget.mouseY;

then you can try with hitTest.

or

if(obj.hitTestPoint(position.x,position.y)){

}

this might be work....