i always just keep track in my head. if i miss one then i normally know cos 
something goes drastically wrong!
i have toyed with the idea of storing them in a multi-dimensional array but 
never tried it. so i guess each object/movieclip would have an array or there 
would be an array mirroring an array of objects/movieclips.so if it was an 
array attached to an object: object.listeners[0][0] = MouseEvent.ROLL_OVER and 
object.listeners[0][1] = mouseOver and object.listeners[1][0] = 
MouseEvent.ROLL_OUT and object.listeners[1][1] = mouseOut . then you could 
iterate through so object.removeEventListener(object.listeners[i][0], 
object.listeners[i][1]); ...or something like that. never tried it so it might 
not even work.
david
> From: [email protected]
> Subject: Re: [Flashcoders] detect and remove listeners
> Date: Wed, 6 Jan 2010 05:35:46 -0600
> To: [email protected]
> 
> Maybe create a class or function that applies and removes the listeners?
> 
> Karl
> 
> 
> On Jan 6, 2010, at 5:21 AM, Henrik Andersson wrote:
> 
> > ktt wrote:
> >> Hello,
> >>
> >> What is the best method to iterate through MovieClip children,  
> >> check if they have listeners and if they have - remove them?
> >>
> > It is not possible to get a list of the listeners. This means that  
> > you can not remove them. You can however detect if there is any at  
> > all for a given event.
> > _______________________________________________
> > Flashcoders mailing list
> > [email protected]
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> 
> Karl DeSaulniers
> Design Drumm
> http://designdrumm.com
> 
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
                                          
_________________________________________________________________
Have more than one Hotmail account? Link them together to easily access both
 
http://clk.atdmt.com/UKM/go/186394591/direct/01/_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to