Title: Re: [flexcoders] Flex 2.0 Alpha: dispatchEvent(Event) method in ActionScript class

Thanks.
Part of the problem is that there is no EventDispatcher class. importing mx.events.* does not help. The popup typeahead in Eclipse does not bring it up either.

Is extending Sprite an option even though the class does nothing graphical?

Regards
RR
--
mobile: +49-(0)170-914-5495
email:   [EMAIL PROTECTED]




-----Original Message-----
From: [email protected] <[email protected]>
To: [email protected] <[email protected]>
Sent: Fri Dec 02 20:15:47 2005
Subject: Re: [flexcoders] Flex 2.0 Alpha: dispatchEvent(Event) method in ActionScript class

your class has to either extend EventDispatcher or if you are already
inheriting from something else and cant put EventDispatcher in the class
heirarchy you will have to implement the IEventDispatcher interface
yourself.

thanks,

Martin


Ralf Rottmann wrote:
> Hi there,
>

>
> I get a compile time “Access of undefined property dispatchEvent” error
> in a .as class file. I have imported flash.events.*; and mx.events.*;
>
> dispatchEvent is available in MXML files but I want to fire an event
> from an ActionScript class.
>

>
> Please help!
>

>
> Ralf Rottmann
>
--
Martin Wood

http://relivethefuture.com/choronzon


------------------------ Yahoo! Groups Sponsor --------------------~-->
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/I258zB/QnQLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~->

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






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




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to