View Full Version : getting a list of all listeners in as2
tapioca
February 2nd, 2009, 09:57 PM
is there an easy way to do this?
i tried:
for (i in _root) {
trace(_root[i]);
}
but it didn't show any listener objects... and it wouldn't say function names, just [type Function].
therobot
February 4th, 2009, 12:52 AM
If you're using Flash, have you tried Debug>List variables or Debug>List Objects? If that doesn't work for you, maybe add your listener objects to an array as you create them, so you can easily reference them when you need to.
tapioca
February 4th, 2009, 04:32 PM
haha, thanks i totally forgot about the debug menu. i was trying to come up with an easy way of removing all listeners, an array sounds like the best way tho.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.