Edgemaster
06-28-2002, 06:54 PM
Hello all,
I'm new to flash stuff, and im trying to write a small piece of code that will hold the movie on the first frame until all the frames are loaded, and when all the frames are loaded it will advance to the second frame and play the movie.
I tried, and i think im quite close...please point me in the right direction:
Code attached to frame 1:
stop();
Code attached to movie clip on frame 1:
onClipEvent (enterFrame) {
if (Get_framesloaded==Get_totalframes) {
_root.gotoAndPlay(2);
}
}
Well, there it is. At the moment all it does is skip straight to frame 2 before the frames have all loaded...resulting in a very jerky movie :(
Please help me! :)
I'm new to flash stuff, and im trying to write a small piece of code that will hold the movie on the first frame until all the frames are loaded, and when all the frames are loaded it will advance to the second frame and play the movie.
I tried, and i think im quite close...please point me in the right direction:
Code attached to frame 1:
stop();
Code attached to movie clip on frame 1:
onClipEvent (enterFrame) {
if (Get_framesloaded==Get_totalframes) {
_root.gotoAndPlay(2);
}
}
Well, there it is. At the moment all it does is skip straight to frame 2 before the frames have all loaded...resulting in a very jerky movie :(
Please help me! :)