2 Replies Latest reply on Apr 24, 2006 7:31 PM by gse

    loading a movie to a particular frame of that movie

    gse
      hello all, i am trying to load a movie and make it stop at a frame number 3, so i am using this script
      on (press) {
      loadMovie("pressLarge.swf",_level2.gotoAndStop(3));
      }

      so i would load my movie presslarge.swf on level 2 and make it stop at frame 3 of that movie, what am I doing wrong? thanks in advance
        • 1. Re: loading a movie to a particular frame of that movie
          sly one Level 1
          You can't do it that way.

          You need to load the movie and then tell it to go to Frame 3. But...if you simply stack the actions like this:

          on (press) {
          loadMovie("pressLarge.swf",_level2);
          _level2.gotoAndStop(3);
          }

          It will work in the Flash IDE but fail on the server because the movie is not fully loaded when the second action is called.

          You need to track the loading and when it is done tell the movie to gotoAndStop. This is much easier using MovieClipLoader's loadClip than loadMovie.



          • 2. Re: loading a movie to a particular frame of that movie
            gse Level 1
            thank you for your help, but how i go about using your method-- tracking the loading and when it is done tell the movie to gotoAndStop. This is much easier using MovieClipLoader's loadClip than loadMovie.