You can look for memory leaks in a Flash CS3 SWF using FlexBuilder profiler to profile an external application. You should definitely make sure there aren't any other apparent leaks
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Sherif Abdou Sent: Friday, August 29, 2008 8:06 PM To: [email protected] Subject: Re: [flexcoders] Re: PLEASE Help. Why some Flash CS3 swf can be unloaded in Flex and why some can't ? Here it is, I think its talking about same thing. http://theflashblog.com/?p=411 ----- Original Message ----- From: Sherif Abdou<mailto:[EMAIL PROTECTED]> To: [email protected]<mailto:[email protected]> Sent: Friday, August 29, 2008 7:48 PM Subject: Re: [flexcoders] Re: PLEASE Help. Why some Flash CS3 swf can be unloaded in Flex and why some can't ? I think that is a Flash Player Bug and has been fixed in the upcoming Flash Player Release. I remb watching a Video on theflashblog.com and one of the Flash Player Developers talked about that as having been fixed in Astro. ----- Original Message ----- From: helihobby<mailto:[EMAIL PROTECTED]> To: [email protected]<mailto:[email protected]> Sent: Friday, August 29, 2008 7:25 PM Subject: [flexcoders] Re: PLEASE Help. Why some Flash CS3 swf can be unloaded in Flex and why some can't ? Just wanted to add the Unload button x= is very high so change to x=0 so you can see it ... Also, when you click unload it WILL seem that the swf unloaded but if you turn on your speakers you will still hear the sound playing AND if you check memory you will see that the swf never released. Thanks again, Sean. --- In [email protected]<mailto:[email protected]>, "helihobby" <[EMAIL PROTECTED]> wrote: > > Hi Guys, > > I am having a BIG problem with loading and unloading Flash CS3 > animation ? > > You can download the two swf animations... > > Good.swf is good and can be unload > while Bad.swf can not be unloaded > > http://www.helihobby.com/html/TestSWFs.zip > > Is there something I am missing ? > Is this a Flex / AIR bug ? > Do I need to implement something in Flash CS3 animation swf for this > to work ? > > Thanks alot for the time, > > Sean. > > Here is a sample code: > > <?xml version="1.0" encoding="utf-8"?> > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" > layout="absolute" > creationComplete="onInit()"> > <mx:Script> > <![CDATA[ > import mx.modules.ModuleLoader; > import mx.core.UIComponent; > import mx.controls.SWFLoader; > > private var m_ui:UIComponent > private var m_loader:Loader; > private var m_timer:Timer = new Timer(1 * 60 > * 1000); > > private function onInit():void > { > m_ui = new UIComponent(); > m_ui.width=400; > m_ui.height=400; > addChild(m_ui); > m_timer.addEventListener > (TimerEvent.TIMER, onTimer); > m_timer.start(); > onTimer(null); > } > > private function onTimer > (event:TimerEvent):void > { > if (m_loader!=null) > { > m_ui.visible = false; > return; > > m_loader.unload(); > m_ui.removeChild(m_loader); > m_ui.validateNow(); > m_loader = null; > } > > m_loader = new Loader(); > var request:URLRequest = new > URLRequest("Good.swf"); > m_loader.load(request); > m_ui.addChild(m_loader); > m_ui.validateNow(); > System.gc(); > } > ]]> > </mx:Script> > </mx:Application> >

