You didn't explain what the problem is.  Do you get a compile error?  
What is the error?  Does the code listening for the event not run?  
Post a mini-example.

Your sample looks right to me.

--- In flexcoders@yahoogroups.com, "m00n_de" <[EMAIL PROTECTED]> 
wrote:
> hi, maybe someone could explain this to me ?
> 
> I build a custom component in flash. The class extends UIComponent.
> The default events like initalize and creationcomplete are 
dispatched
> correctly. But i canĀ“t solve it to dispatch custom events.
> 
> Before the class definition starts i use:
> [Event("myEvent")].
> 
> 
> Later in the class I call
> 
> var eventObj = new Object();
> eventObj.type = "myEvent";
> dispatchEvent(eventObj);
> 
> Where is my problem ??




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to