5 Replies Latest reply on Jun 29, 2006 9:28 PM by kglad

    how do you point

      how do you point to a specific frame when calling in an external swf file?

      This is what I"m using to pull the external swf file in....

      _root.createEmptyMovieClip("container",1);
      container.loadMovie ("_MoviePlayer.swf");

      I'd like it to go directly to frame 3, how can I do that?

      Thanks



        • 1. Re: how do you point
          kglad Adobe Community Professional & MVP
          use preload code to ensure your swf is loaded, then execute _root.container.gotoAndStop(3); ( or gotoAndPlay(3) ).
          1 person found this helpful
          • 2. Re: how do you point
            I'm still having a lot of trouble with this. I've tried a variety of things none of which have worked at all.

            This is what I have used so far:
            (1)
            on (release){
            createEmptyMovieClip("container",1);
            container.loadMovie ("_MoviePlayer.swf");
            _root.container.gotoAndStop ("Ghost");
            }
            *Still plays the first frame, not the 3rd (which is labeled "Ghost")

            (2)
            on(release){
            _root.whereToGo="gallery";
            container.loadMovie("_MoviePlayer.swf");
            }

            *and I put this in the external swf:
            gotoAndPlay(_root.whereToGo);

            *Nothing comes up at all on this one.

            (3)
            on (release) {
            loadMovieNum ("_MoviePlayer.swf", 1);
            _level1.gotoAndPlay("Ghost");
            }
            *This one works, but does not go to the correct frame, it plays the first frame.

            Any advice?

            Thanks
            • 3. Re: how do you point
              Level 7
              did you read kglad's response? Specifically:

              > ***use preload code to ensure your swf is loaded***, then execute
              _root.container.gotoAndStop(3)

              If you don't know how to build a preloader, search the forum

              --
              -------------------------------
              Remove '_spamkiller_' to mail
              -------------------------------


              1 person found this helpful
              • 4. Re: how do you point
                I'm still working on this with many problems...

                where does the preload code go?

                And is this the one that I'd use?
                on (release){
                createEmptyMovieClip("container",1);
                container.loadMovie ("_MoviePlayer.swf");
                _root.container.gotoAndStop (3)
                }
                • 5. Re: how do you point
                  kglad Adobe Community Professional & MVP
                  try: