3 Replies Latest reply on Apr 3, 2011 7:01 AM by kglad

    Unload an SWF?

    greggjl

      I'm trying to unload an SWF that has been loaded by the following code, but can't get it to work.

       

      This code loads the SWF and works fine:

       

      btn1.onRelease=function(){

      myContainer.loadMovie("LibraryBooks.swf");

      gotoAndStop("35b");

      }

       

      This is the code I'm trying, which doesn't work (the gotoAndStop works but the unload SWF doesn't work)

       

      resetbtn.onRelease=function(){

      myContainer.unloadMovie("LibraryBooks.swf");

      gotoAndStop("35");

      }

      thx-