Yeah, I thought maybe itself but it definitely didn't. But I am having some 
other strange issues popping up. For example, I am trying to load XML files 
every 10 seconds to check if they have been changed. Only when I only use one 
Loader-instance and keep re-using it the performance is terrible But when I 
recreate the Loader-class every 10 seconds and load the files. The performance 
(low framerate) issue goes away. I am not understanding why this is.

Anyone having any clue? 

> 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


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

Reply via email to