W.R. de Boer wrote:
Maybe I should change it to code block below? The dispose()-method tries to stop any Timer-instances and removes event listeners and nullifies any objects (i.e. not Numbers or ints).if ( _element != null ) { _element.dispose(); removeChild( _element ); delete _element; _element = null; }
The order of the removal and disposal shouldn't matter as far as garbage collection goes (your logic might care). But the delete operator is not to be used here. It is for removing dynamic properties. A local variable is not a dynamic property.
_______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

