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

2007-04-22 Thread Troy Gilbert
> > Then I would have some fullscreen child of the mainclass so the mouse has > something to hit. > > > > > From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com ] On > Behalf Of Ronnie Liew > > Sent: Thursday, April 19,

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

2007-04-21 Thread Ronnie Liew
> > > > > > > > > > > > > Then I would have some fullscreen child of the mainclass so the mouse has > something to hit. > > > > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of Ronnie Liew > > Sent: Thursday,

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

2007-04-20 Thread Troy Gilbert
s@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. Not too sure but in this case, I don't think the SystemManager is in the picture. Is that correct? On 4/20/07, A

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

2007-04-19 Thread Alex Harui
: [flexcoders] Root sprite not responding to MouseEvent ? 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] <ma

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

2007-04-19 Thread Ronnie Liew
Liew > Sent: Thursday, April 19, 2007 12:15 PM > 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 unus

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

2007-04-19 Thread Alex Harui
PM 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), wil

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 events

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

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
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

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 not

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

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 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 exten

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

2007-04-09 Thread Alex Harui
day, April 09, 2007 10:24 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Root sprite not responding to MouseEvent ? Hi all, Just want to check, does the root sprite actually respond to any of the MouseEvent? Any reason why it doesn't ?

[flexcoders] Root sprite not responding to MouseEvent ?

2007-04-09 Thread Ronnie Liew
Hi all, Just want to check, does the root sprite actually respond to any of the MouseEvent? Any reason why it doesn't ?