1 Reply Latest reply on Feb 8, 2011 5:33 PM by Flex harUI

    Detect swfloader play complete?

    Handycam Level 1

      Is there a way to detect when the SWF in a SWFloader had completed?

       

      <mx:SWFLoader id="magic" x="-281" y="-190" />

       

      Which I am loading like this:

       

      protected function doMagic(event:Event):void{

         magic.load("assets/magictrick.swf");

      }

       

      I was thinking it might be a good idea to remove the SWF when it's done to save memory, as it's not needed any more.  Or is that even a concern?