0 Replies Latest reply on Sep 29, 2006 9:20 AM by DIY_Lobotomy

    Checking if a dynamically loaded SWF has loaded...

    DIY_Lobotomy Level 1
      I am loading one SWF into another with the following code:

      var contentClip:MovieClip = _root.createEmptyMovieClip("contentClip",(_root.getDepth()-1));
      contentClip.loadMovie("searchResults.swf");

      That works fine. Now, I want the loaded SWF ("searchResults.swf") to perform some actions after it has loaded. I tried the following code on the first frame of the loaded SWF, but it didn't work:

      this.onLoad = function (){
      //SOME FUNCTION
      }

      It DID work, however, when I changed the "onLoad" to "onEnterFrame". But that doesn't do what I need it to, because I only want the function to happen once after the SWF has initially loaded - not every frame...

      Is this possible? Thanks!...