Re: [flexcoders] Root sprite not responding to MouseEvent ?

2007-04-22 Thread Troy Gilbert
@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

Re: [flexcoders] Root sprite not responding to MouseEvent ?

2007-04-21 Thread Ronnie Liew
:[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

Re: [flexcoders] Root sprite not responding to MouseEvent ?

2007-04-20 Thread Troy Gilbert
] 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

Re: [flexcoders] Root sprite not responding to MouseEvent ?

2007-04-19 Thread Ronnie Liew
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;

Re: [flexcoders] Root sprite not responding to MouseEvent ?

2007-04-19 Thread Erik Price
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

Re: [flexcoders] Root sprite not responding to MouseEvent ?

2007-04-19 Thread Ronnie Liew
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

Re: [flexcoders] Root sprite not responding to MouseEvent ?

2007-04-19 Thread Ronnie Liew
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

RE: [flexcoders] Root sprite not responding to MouseEvent ?

2007-04-19 Thread Alex Harui
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

Re: [flexcoders] Root sprite not responding to MouseEvent ?

2007-04-19 Thread Ronnie Liew
] 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

RE: [flexcoders] Root sprite not responding to MouseEvent ?

2007-04-19 Thread Alex Harui
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

Re: [flexcoders] Root sprite not responding to MouseEvent ?

2007-04-10 Thread Ronnie Liew
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

RE: [flexcoders] Root sprite not responding to MouseEvent ?

2007-04-09 Thread Alex Harui
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,

Re: [flexcoders] Root sprite not responding to MouseEvent ?

2007-04-09 Thread Ronnie Liew
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

RE: [flexcoders] Root sprite not responding to MouseEvent ?

2007-04-09 Thread Alex Harui
: 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

Re: [flexcoders] Root sprite not responding to MouseEvent ?

2007-04-09 Thread Daniel Freiman
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