I’m loading firstFloor.swf into an empty movieclip (photoMovies) in my main movie, but how do i tell it to go to a certain frame within firstFloor.swf. Here’s the code:
_root.photoMovies.loadMovie(“firstFloor1.swf”,1);
Can any one help?
I’m loading firstFloor.swf into an empty movieclip (photoMovies) in my main movie, but how do i tell it to go to a certain frame within firstFloor.swf. Here’s the code:
_root.photoMovies.loadMovie(“firstFloor1.swf”,1);
Can any one help?
_root.photoMovies.loadMovie("firstFloor1.swf", "myMovie", 1);
_root.photoMovies.myMovie.gotoAndPlay("myFrame");
…I believe.
-M
if that doesnt work it could be
_root.loadMovie(“photoMovies”,“firstFloor1.swf”);
_root.photoMovies.gotoAndPlay(“myFrame”);
one thing that might happen is that the gotoAndPlay will have no effect because the movie isnt fully loaded when it executes
i use this to delay things one frame
onEnterFrame = function () {
_root.photoMovies.gotoAndPlay(“myFrame”);
delete onEnterFrame;
}
depending on the computer and the file size one frame might not be enough
so it would be better to put in a preloader-like thing
onEnterFrame=function(){
if(photoMovies.getBytesLoaded()==photoMovies.getBytesTotal()){
photoMovies.gotoAndPlay(“myFrame”);
delete onEnterFrame;}
}
of course, the problem with that is that if it executes right away, it might think the file has loaded when actually it hasnt started loading yet… so you better delay the whole thing one frame, then start checking the bytesLoaded, and when its loaded, send it to frame whatever.
Of Course, the first frame of the movie will flash on the screen for one frame before it jumps to the frame you want.
to avoid that I put a big movie clip in front of it to hide it, and then take it away when it is loaded
all this is avoiding using the onLoad method, which I have never been able to get to work. Anyone have better success with it?
This code makes sense but i can’t seem to get it to work and i’ve tried loads of variations.
Anyone got any ideas?
:: Copyright KIRUPA 2024 //--