Here is a tutorial on Adobe for addding your own event listeners
(delegates).  In the "non-delegate" example, they also might shine some
light on your original question  (They do a switch() on eventobj.target ..

http://www.adobe.com/devnet/flash/articles/eventproxy.html


> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Mischa
> Williamson
> Sent: Monday, September 11, 2006 7:10 PM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] parsing full instance pathname? or am I
> completelywrong strategy?
>
>
> How about:
>
> function click(eventObject:Object) {
>       trace( eventObject.target._name );
>       trace( eventObject.target._parent._name );
> }
>
> ?
>
> But if you are doing different actions for each button it is
> preferable to use a Delegate and create separate function
> handlers as
> it make the code much easier to understand and maintain and prevents
> needless string comparison.
>
> On 12 Sep 2006, at 00:01, James wrote:
>
> > function click(eventObject:Object) {
> >     // decide what to do
> > }
>
> _______________________________________________
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>


_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to