When externaly loading an swf, pointing to a particular frame

Okay, i was curious, (cause this would help me a lot) > if you are loading an external swf to a target or container or what have you, can point it to a particuar frame or scene in that swf?

thank you,

just _root.mycontainer.gotoAndPlay(4);

cool, that helps. :thumb:

what about an swf loaded into a blank movie clip without a container:q:

even a blank movieclip has to have a name. same thing

_root.createEmptyMovieClip(…

_root.myblankmovieclip.loadmovie(“ddd.swf”);

wait while it loads.

then

_root.myblankmovieclip.gotoAndPlay(4);

okay, then if i had this random swf code like this:

choice = Math.round(Math.random()*5);
switch (choice) {
case 0 :
location.loadMovie(“image0.swf”);
break;
case 1 :
location.loadMovie(“image1.swf”);
break;
case 2 :
location.loadMovie(“image2.swf”);
break;
case 3 :
location.loadMovie(“image3.swf”);
break;
case 4 :
location.loadMovie(“image4.swf”);
break;
case 5 :
location.loadMovie(“image5.swf”);
break;
}

then, i would put _root.location.gotoAndPlay(4); after each location.loadMovie(“image0.swf”)

but then, wouldn’t it hit the first from of the swf then go to and play 4? or would i just go to and play 4?

frame 1-10 ( do anything )
frame 11 ( _root.oMovie.loadMovie"image5.swf"); )
frame 13 ( if(_root.oMovie.bytes < total bytes etc) go back to frame 12 )
frame 14-25 ( do anything )

sometimes .bytes and total bytes are less than 0 or -1 so watchout for that