Not a problem Angus,
I seem to remember seeing this as an issue somewhere. Streams are not killed when the application is unloaded.
Other than your possible solution, I am not aware of a workaround at this time.
Hilary
--
On 7/10/06, Angus Johnson [EMAIL PROTECTED] wrote:
Gotcha. Thanks
Thank you both for the reply. Hilary, your example has been very helpful. Correct me if I'm wrong (very likely) but even though you unload the swfContent wouldn't it still be in memory? From my very brief read up of garbage collection wouldn't it still exist unless you removed myLoader
Hi Angus,
swfContent is a reference to the actual SWF file which isthe child of Loader.
swfContent.loaderInfo.loader.unload() will remove the SWF file.
You are right to say that removeChild(myLoader) would completely remove the Loader, but in this case I need it to load the SWF again.
Hilary
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
Hi Angus
I have an example of loading a swf in Flex 2 with code on my site.
http://www.bridel.org/
Let me know if it helps...
Hilary
--
On 7/6/06, Angus Johnson [EMAIL PROTECTED] wrote:
Hi,I have a canvas called parentView into which I add SWF child objects
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
6 matches
Mail list logo