- import the event
- create it
- dispatch it

Don't know the classpath, but something like:

mx.events.TextEvent;

var te:TextEvent = new TextEvent ( TextEvent.TEXT, false, true );
dispatchEvent(te);

Then at the top of your class, do:

[Event(name="TextSomething", type="mx.events.TextEvent")]

Make sense?

----- Original Message ----- 
From: "arnold_charming" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, July 25, 2006 2:53 PM
Subject: [flexcoders] Re: dispatching TextEvent on image click


--- In [email protected], "arnold_charming"
<[EMAIL PROTECTED]> wrote:
>
> Hi!
> 
> How to dispatch a TextEvent when a user clicks on an image? Thank you.
>

Can this be done? Tnx.







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



 




------------------------ Yahoo! Groups Sponsor --------------------~--> 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/3EuRwD/bOaOAA/yQLSAA/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/
 



Reply via email to