[Flashcoders] parsing full instance pathname? or am I completely wrong strategy?

2006-09-11 Thread James
Hi I have an application in which I create various buttons in various panes of an accordion component. I am having trouble handling events... I use: buttonName.addEvent.Listener(click,this); and then function click(eventObject:Object) { // decide what to do } but the only way I

Re: [Flashcoders] parsing full instance pathname? or am I completely wrong strategy?

2006-09-11 Thread Mischa Williamson
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