Skip to main content
June 20, 2006
Answered

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



This topic is closed to new replies. Start a new post to keep the conversation going.
kglad
kgladCorrect answer
Community Expert
June 30, 2006
try:

5 replies

June 30, 2006
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)
}
Translate
kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
June 30, 2006
try:

Translate
kglad
Community Expert
Community Expert
June 20, 2006
use preload code to ensure your swf is loaded, then execute _root.container.gotoAndStop(3); ( or gotoAndPlay(3) ).
Translate
June 20, 2006
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
Translate