Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Won't Fix
-
Adobe Flex SDK Previous
-
None
-
Affected OS(s): All OS Platforms
Affected OS(s): All OS Platforms
Language Found: English
Description
When I use SWFLoader, it will be memory leak.
How can I release the external swf file.
If there is no way, this is bug maybe.
Could you check following code?
You'll have to make up swf(sample1.swf , sample2.swf) loosely .
Thanks.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
<mx:Script>
<![CDATA[
private function load(str:String):void{
loader.source = str;
}
]]
>
</mx:Script>
<mx:HBox>
<mx:Button click="load('sample1.swf')"/>
<mx:Button click="load('sample2.swf')"/>
<mx:Label id="memory"/>
</mx:HBox>
<mx:SWFLoader id="loader" complete="
" width="100%" height="100%" />
</mx:Application>