Resource management and garbage collection is a lot different then it used to be, here's a great post on it (from Grant Skinner's blog):
http://www.gskinner.com/blog/archives/2006/07/as3_resource_ma_1.html
The point is, you should stop all playing sound, remove all listeners from EventDispatcher and nullified the Display Object or loaded swfs.
I believe in the years to come, this issue will be brought up again and again :-)
Jeremy.
Hi,
I have a canvas called parentView into which I add SWF child objects via...
parentView.addChild(mySWF);
mySWF.load();
No problems loading. When I want to change the contents of parentView and swap out the loaded SWF I run...
parentView.removeAllChildren();
// get new mySWF
parentView.addChild(mySWF);
mySWF.load();
Now I have noticed that the previous SWF's don't seem to unload. I have an example that runs a sound clip and I can still hear that playing even if I have replaced mySWF content in the parent several times. I also noticed that flash memory usage continues to increase with each load so something is wrong. Debug correctly shows only one child loaded.
SWFLoader class does't have an unload() method. removeAllChildren() should work right?
Cheers
Angus
__._,_.___
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
![]()
SPONSORED LINKS
Web site design development Computer software development Software design and development Macromedia flex Software development best practice
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
__,_._,___
- Re: [flexcoders] SWF's not unloading Jeremy Lu
- Re: [flexcoders] SWF's not unloading Angus Johnson
- Re: [flexcoders] SWF's not unloading Hilary Bridel
- Re: [flexcoders] SWF's not unloading Angus Johnson
- Re: [flexcoders] SWF's not unloading Hilary Bridel
Reply via email to

