If the app only contains 1 child (which is a bitmap), and the the main
app listens to mouse move, it doesn't work.


code:

package {
        import flash.display.Bitmap;
        import flash.display.BitmapData;

        import flash.display.Sprite;
        import flash.events.Event;
        import flash.events.MouseEvent;

        public class StageTest extends Sprite
        {
                public function StageTest()
                {
                                
                        var bitmap:Bitmap = new Bitmap(new 
BitmapData(300,300,true,0xFFFFFFFF));
                        addChild(bitmap);
                        this.addEventListener(MouseEvent.MOUSE_MOVE, tracer);
                }       
                
                
                private function tracer(e:Event):void{
                        trace("mouse event")
                }
        }
}



the main app is a sprite, it should respond to mouse move right? and
it does have a child and that is the visible pixel.

How come it doesn't trace out?

Reply via email to