Re: [Flashcoders] CLICK event not getting fired

2009-08-18 Thread Ian Thomas
Anna, Whether it's MouseEvent or Event makes no difference - since the MouseEvent class is derived from Event, either will do unless you actually want to access properties/methods defined only in MouseEvent. Sajid, As Latcho says, you need something graphical to click on. You could use the

Re: [Flashcoders] CLICK event not getting fired

2009-08-18 Thread Alexander Farber
On Tue, Aug 18, 2009 at 6:22 AM, Sajid Saiyedsajid.fl...@gmail.com wrote: I should have given a bit more background. I am trying to detect a CLICK anywhere on the (blank) stage. Only when the user clicks somewhere on stage, I want to show something. How can I do this? Do I still need to

[Flashcoders] CLICK event not getting fired

2009-08-17 Thread Sajid Saiyed
Hi, Although a bit late, I am making a move to AS3 and facing some issues. After banging my head around a bit, I would like to ask for some help :) My CLICK event is not getting detected from withing my class file. In the code snippets below, the reportClick function is not getting triggered

Re: [Flashcoders] CLICK event not getting fired

2009-08-17 Thread Latcho
try a 'this.buttonMode=true' on MyGesture class Latcho Sajid Saiyed wrote: Hi, Although a bit late, I am making a move to AS3 and facing some issues. After banging my head around a bit, I would like to ask for some help :) My CLICK event is not getting detected from withing my class file. In

Re: [Flashcoders] CLICK event not getting fired

2009-08-17 Thread Sajid Saiyed
HI, I did this: public function MyGesture(){ this.buttonMode=true; } but it still does not fire... Any idea what might be causing this problem? The MyGesture class is instantiated from Mediaplayback.as (which is my

Re: [Flashcoders] CLICK event not getting fired

2009-08-17 Thread Anna
On Mon, Aug 17, 2009 at 9:32 PM, Sajid Saiyed sajid.fl...@gmail.com wrote: Hi, Although a bit late, I am making a move to AS3 and facing some issues. After banging my head around a bit, I would like to ask for some help :) My CLICK event is not getting detected from withing my class file.

Re: [Flashcoders] CLICK event not getting fired

2009-08-17 Thread Latcho
Are you sure there is a graphic in the myGesture movieclip ? You need something to click on. Do you see the handcursor with buttonMode = true ? Otherwise try this as a test in the MyGesture constructor asn make sure you see a square, then check for handCursor, then click it. Mind that the the

Re: [Flashcoders] CLICK event not getting fired

2009-08-17 Thread Sajid Saiyed
Ok, I should have given a bit more background. I am trying to detect a CLICK anywhere on the (blank) stage. Only when the user clicks somewhere on stage, I want to show something. How can I do this? Do I still need to draw something? Sajid On Mon, Aug 17, 2009 at 11:50 AM,