@yahoogroups.com flexcoders%40yahoogroups.com [mailto:
flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On
Behalf Of Ronnie Liew
Sent: Thursday, April 19, 2007 12:46 PM
To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
Subject: Re: [flexcoders] Root sprite not responding to MouseEvent
:[EMAIL PROTECTED] On
Behalf Of Ronnie Liew
Sent: Thursday, April 19, 2007 12:46 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Root sprite not responding to MouseEvent ?
Hi Alex,
I am not creating a Flex Project, I am creating an Actionscript
Project
] On
Behalf Of Ronnie Liew
Sent: Thursday, April 19, 2007 12:15 PM
To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
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
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;
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
The main app sprite is (by default) added to the displaylist, else i
won't be able to see the bitmap instance
On 19 Apr 2007 03:05:47 -0700, Erik Price [EMAIL PROTECTED] wrote:
On 4/19/07, Ronnie Liew [EMAIL PROTECTED] wrote:
the main app is a sprite, it should respond to mouse move
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
To: flexcoders@yahoogroups.com
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
] 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
mailto:flexcoders%40yahoogroups.com
] On
Behalf Of Ronnie Liew
Sent: Thursday, April 19, 2007 12:15 PM
To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
Subject: Re: [flexcoders] Root sprite not responding to MouseEvent ?
After some research and googling, the conclusion that I
Hi Alex,
Thanks, I think i got it. Basically it should be the stage that is
listening to the mouseevent not the root sprite (which is the default
main class app). Like you said, because there are no visible pixels or
child display object that will propagate the mouseevent, the root
sprite will
Any Sprite must have drawn pixels in itself or its children in order
to respond to the mouse. They can be alpha=0, but there has to be
something there.
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ronnie Liew
Sent: Monday, April 09,
Hi Alex,
Thanks for your response. My main class app (which is the root sprite)
actually has a bitmap object added to it. The bitmap can be seen but
however none of the mouseevent works.
I understand that the bitmap object does not have any of the
mouseevent but however since the main class
: Monday, April 09, 2007 11:06 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Root sprite not responding to MouseEvent ?
Hi Alex,
Thanks for your response. My main class app (which is the root sprite)
actually has a bitmap object added to it. The bitmap can be seen but
however none
Make sure the sprite has mouseEnabled=true. Also, the sprite might have
children which are intercepting the mouse commands. The top most item (in
the z-order) that has mouseEnabled will receive the mouse event first and
may have the ability to stop prorogation. Additionally, adding interaction
15 matches
Mail list logo