I am using a Canvas itemRenderer for a container I use to display images. See pseudo code below.
image = new Image(); image.source = data.@thumb; this.addChild(image); this.addEventListener(MouseEvent.MOUSE_OVER, enlarge(image)); this.addEventListener(MouseEvent.MOUSE_OUT, shrink(image));
When I mouse over the canvas, the enlarge function is called. However as soon as I move the mouse onto the image, or another child element, the MOUSE_OUT event is fired.
Can anyone point me in the direction of a way to disable this behaviour?
Thanks 🙂
You should use
MouseEvent.ROLL_OVERandMouseEvent.ROLL_OUTevents instead.From the Flash CS4 documentation: