HI can any one tell me what is wrong with this code.
I wrote a custom event and dispatched this event from my entity class and am
listening for this event on main application but the listener is not listening
for event. Please help me.
here is my Event class
public class MyEvent
If you're not listening for the event directly on the component that will be
dispatching it, you need to toggle the 'bubbles' property so that the event
will will trigger handlers up the display list from where it was dispatched.
So in your case change your dispatch line to:
dispatchEvent( new
-0500
Subject: Re: [flexcoders] Custom Event Not Dispatched
If you're not listening for the event directly on the component that will be
dispatching it, you need to toggle the 'bubbles' property so that the event
will will trigger handlers up the display list from where it was dispatched.
So
Message -
From: Daniel Gold [EMAIL PROTECTED] danielggold%40gmail.com
To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
Sent: Sat, 28 Jun 2008 10:16:29 -0500
Subject: Re: [flexcoders] Custom Event Not Dispatched
If you're not listening for the event directly on the component
But dear event is still not dispatching after making all this changes,
- Original Message -
From: Daniel Gold [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Sat, 28 Jun 2008 10:47:50 -0500
Subject: Re: [flexcoders] Custom Event Not Dispatched
right, I'm only half awake
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Custom Event Not Dispatched
But dear event is still not dispatching after making all this changes,
- Original Message -
From: Daniel Gold [EMAIL PROTECTED]
mailto:danielggold%40gmail.com
To: flexcoders@yahoogroups.com
:40:00 -0700
Subject: RE: [flexcoders] Custom Event Not Dispatched
MyObject is not a DisplayObject so the event will not bubble. The
application should be explicitly adding a listener to MyObject
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED
7 matches
Mail list logo