Hey everybody, I have searched the forums and google and so far have not found any definitive answers for the details of AS3 garbage collection, I was hoping somebody might be able to answer a couple questions?
-
Let’s say I have an instance of a class that contains an Object. In the past I have written a dispose() or similar method for that class that nulls that object, and then I null the class instance itself. Am I wasting my time with a dispose method? If the only reference to the object is in the class instance, does nullifying the class instance remove the need for a dispose() method, or does the reference persist because I didn’t null it explicitly?
-
Do function vars that are objects need to be nulled, or do they go out of scope at the end of the function. i.e var myObject:Object = new Object(); ?
thanks everyone!
–EP