Grant Skinner has some good blog postings on the subject...
<http://www.gskinner.com/blog/archives/2006/06/as3_resource_ma.html>
<http://www.gskinner.com/blog/archives/2006/07/as3_resource_ma_1.html>
<http://www.gskinner.com/blog/archives/2006/08/as3_resource_ma_2.html>
<http://www.gskinner.com/blog/archives/2006/09/resource_manage.html>
<http://www.gskinner.com/blog/archives/2006/09/garbage_collect.html>
<http://www.gskinner.com/blog/archives/2006/06/understanding_t.html>
<http://www.gskinner.com/blog/archives/2006/07/as3_weakly_refe.html>
-- JOR
James O'Reilly — Consultant
Adobe Certified Flash Expert
http://www.jamesor.com
Design • Code • Train
Kalani Bright wrote:
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
_______________________________________________
[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