[Flashcoders] removeChild - targeting question

2008-04-01 Thread Forrest Maready
The code below has a problem. The line within the removeDead function is supposed to removeChild on the emitter object. I can't for the life of me figure out what the path is- is it event.target.parent.removeChild(event.target) or is it parent.removeChild( event.target) or what? I've tried

Re: [Flashcoders] removeChild - targeting question

2008-04-01 Thread Steven Sacks
try event.currentTarget ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] removeChild - targeting question

2008-04-01 Thread Leandro Ferreira
emitter.parent? Leandro Ferreira On 4/1/08, Forrest Maready [EMAIL PROTECTED] wrote: The code below has a problem. The line within the removeDead function is supposed to removeChild on the emitter object. I can't for the life of me figure out what the path is- is it

Re: [Flashcoders] removeChild - targeting question

2008-04-01 Thread Forrest Maready
Steven said event.currentTarget Leandro said emitter.parent Thanks guys! I think the removeChild is working below (event.currentTarget), but now I'm getting the Cannot access property or method of a null object reference which is usually what happens when the EventListener is calling a