David Rorex schrieb:
my_var = null; and delete my_var; should do exactly the same thing...delete
doesn't actually delete the object, only the reference to the object. it
doesn't get removed from memory until later (when the GC feels like it)
Well, we observe different behaviour here:

After unloading and removing a dynamically loaded mc, the variables used within that mc are all set to "null" - the debugger still shows they are there, and they are not null. Then we changed the code to _delete_ all variables onUnload, and now the variables get cleared. I must add that the corresponding variables used by the mc reside at _global, but this shouldn't make any difference, should it?


Best regards,
Roman.

--

-------------------------------------------------------------------
gosub communications gmbh | fredersdorfer str. 10  | 10243 berlin
t [030] 29 66 88 81 | f [030] 29 66 88 84 | http://www.gosub.de
-------------------------------------------------------------------

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to