Reputation: 3851
Does anyone know if it's possible to list the references an object currently has in ActionScript3 (e.g. listeners, children etc)?
I'm trying to clear an object from memory ready for garbage collection but for some reason it's hanging around.
Thanks.
Upvotes: 0
Views: 734
Reputation: 1165
if you have flash builder, then profiling your app should give you pretty much what you need. Otherwise,you should be able to make a simple profiler of your own using flash.sampler.* api.
Upvotes: 2
Reputation:
There is no way except to manually check every object, which obviously is not very feesible. Solution: learn2plan when you code, don't just slap stuff together. If you're writing code in such a way that you have no idea which objects are talking to which, you're doing it wrong.
Upvotes: -1