Hi Alex, I am not creating a Flex Project, I am creating an Actionscript Project. Not too sure but in this case, I don't think the SystemManager is in the picture. Is that correct?
On 4/20/07, Alex Harui <[EMAIL PROTECTED]> wrote: > > > > > > > > In a Flex app, the swf file's main class is SystemManager. It has some > children one of which is the Application. If you click anywhere on the > background of the application you should get mouseDown events. I do in my > tests, and the target is the application because it totally covers the > SystemManager. > > Are you in a different topology or seeing something else? Set a breakpoint > on SystemManager.as:mouseDownHandler. > > -Alex > > ________________________________ > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of Ronnie Liew > Sent: Thursday, April 19, 2007 12:15 PM > To: [email protected] > Subject: Re: [flexcoders] Root sprite not responding to MouseEvent ? > > > > > > > After some research and googling, the conclusion that I can draw is > that for mouse event, it is abit unusual. Apparently, the main > application class (which by default extends from a Sprite class), will > not receive mouse events directly. Mouse events seemed to be the only > exception, all other events like the keyboard events, enterframe work > fine. > > In order for the main application class to receive mouse event, it > must be through a child (capable of dispatching a mouse event) in the > its display list via bubbling or capture phase. > > According to Colin Moock, > "Mouse interactions with vector content drawn via the graphics > property of a .swf file's main class do not trigger mouse events. > However, mouse interactions with vector content drawn via the graphics > property of any other instance of InteractiveObject or its subclasses > do trigger mouse events. " > > So I guess, using the bitmap object probably fall under "mouse > interactions with vector content drawn via the graphics property"? > > > > > > > On 4/19/07, Ronnie Liew <[EMAIL PROTECTED]> wrote: > > > > > > > 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? > > > > > > Did you forget to add your Sprite to the Stage? > > > > > > e > > > > > > > > >

