PDA

View Full Version : Preload issue: Start playing the movie once a certain frame has been loaded.



Rex
January 26th, 2004, 01:49 AM
I'm building a quite large flash movie with hundreds of movieclips (with their own preloaders) with approx 150 frames in the _root timeline. But I've until now never been very confident with preloaders, and that is causing me hairloss.

Once the user enter the site, I want a preloader to come up, but I want to use actionscript to start playing frame 2 once frame 2 content is loaded, not start playing frame 2 once the WHOLE movie is loaded.

I use the below code for simple preloading with no feedback of progress, however it loads the whole movie before it start playback of frame 2:

if (_framesloaded>=_totalframes) {
gotoAndPlay (2);
} else {
gotoAndPlay (1);
}

All help is greatly appreciated.


Rex

splict
January 26th, 2004, 01:54 AM
if (_framesloaded>=2) {
gotoAndPlay (2);
} else {
gotoAndPlay (1);
}

Rex
January 26th, 2004, 02:05 AM
:blush:

That was too easy..... Thanks mate