SteveC
08-02-2001, 11:21 AM
Hi guys,
I've got a 1200 frame movie and want a progress bar at the beginning to scale according the the number or frames that have been loaded - then play the movie which starts frame 2.
The bar is an instanced movie clip called 'loader' and the actionscript is on the main timeline, frame 1, as follows -
if (_framesloaded>=_totalframes) {
gotoAndPlay (2);
} else {
setProperty ("_root.loader", _xscale, (_framesloaded/_totalframes)*100);
gotoAndPlay (1);
}
It's a modification of the code in the Flash Help. When I view the movie streaming it ignores this frame and streams as normal. Whereas I want it to load all 1200 frames then play.
Any suggestions?
Thanx,
- Steve.
I've got a 1200 frame movie and want a progress bar at the beginning to scale according the the number or frames that have been loaded - then play the movie which starts frame 2.
The bar is an instanced movie clip called 'loader' and the actionscript is on the main timeline, frame 1, as follows -
if (_framesloaded>=_totalframes) {
gotoAndPlay (2);
} else {
setProperty ("_root.loader", _xscale, (_framesloaded/_totalframes)*100);
gotoAndPlay (1);
}
It's a modification of the code in the Flash Help. When I view the movie streaming it ignores this frame and streams as normal. Whereas I want it to load all 1200 frames then play.
Any suggestions?
Thanx,
- Steve.