Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-7992

[customer] SWFLoader 's Memory Leak?

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • Adobe Flex SDK Previous
    • mx: SWFLoader
    • 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="

      {memory.text=String(System.totalMemory)}

      " width="100%" height="100%" />
      </mx:Application>

      Attachments

        Activity

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: