I'd be interested in tools for monitoring this too.

To avoid holding onto objects through addEventListener, have you tried the
weak reference option?  We've been using that increasingly as the default
way to add listeners, so objects don't hang around when we think we're
finished with them.

Doug 

-----Original Message-----
From: Kalani Bright [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 28, 2007 2:56 PM
To: [email protected]
Subject: [Flashcoders] Flash 9 AS3 Resource Management

Hi everyone,
 
Does anyone have some tips or tutorials on how to handle resources and
performance issues in flash.
 
I have more of an application than a flash file and things start to slow
down after a while.  I'm thinking the garbage collection mechanism in flash
isn't deleting the objects which aren't needed anymore.
I was able to improve performance somewhat by overriding addEventListener to
put the event listener into an array of objects which I then reference
values from.  When a SuperMovieClip object is removed from the stage an
event listener for that event goes through the array and removes each of the
listeners.  If it is added to the stage again all the listeners are re-added
from the array.
 
Theres some other slow downs I can't account for.  It would be nice if there
was a debugging tool or something so I could see what types of objects are
in memory at any time so I can see whats not getting deleted and what keeps
taking up resources.  I am especially interested in however strategies for
dealing with the issues of instantiation, deletion, events, for resource
optimization.
 
Thank you, thank you, (thank you)
 
Kalani


_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to