5 Replies Latest reply on Nov 10, 2010 7:11 PM by Flex harUI

    SWF from swfLoader not unloading - how to resolve?

    learner_doug Level 1

      Hi,  My swfs unload properly when I run the application in the Flashbuilder environment, but in the release build on the web, they do not  I wonder if I need to test for the swf to unload before I close the custom popup box?

       

       

      I load the swfs like this inside a custom popup titleWindow:

       

       

      protected

       

       

       

       

       

      function textarea1_clickHandler(event:MouseEvent):void

      {

       

       

           this.move(1,1);

           loader.load(

      "lessons/EBS_new_FieldOps_MileStone6.swf");

      }

       

      -------------------------------------------------------------------------------------

       

      I unload the swfs like this:

       

      protected

       

       

      function titlewindow1_closeHandler(event:CloseEvent):

      void

      {

           loader.unloadAndStop();

           PopUpManager.removePopUp(

      this);

      }

       

       

      -------------------------------------------------------------------------------------

       

      The popup window dissapears, but the movie stays loaded.