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