Chilton
08-19-2002, 10:21 PM
I've got a Flash movie with 5 levels. I'm checking to see if they are fully loaded by using the following...
///
x = int( (_level3.getBytesLoaded()/_level3.getBytesTotal())*100);
if (_level3.getBytesLoaded()!=_level3.getBytesTotal() ){
_root.progress.gotoAndStop(x);
gotoAndPlay("notloadedyet");
} else {
_root.progress.gotoAndStop(x);
gotoAndPlay("myframeisloaded");
}
////
(I changed the names a bit to make more sense out of context)
Now, when I run this, some frames routinely ARE NOT LOADED even though they pass this test.
Should I be using _framesloaded/ifFrameLoaded instead?
-Chilton
///
x = int( (_level3.getBytesLoaded()/_level3.getBytesTotal())*100);
if (_level3.getBytesLoaded()!=_level3.getBytesTotal() ){
_root.progress.gotoAndStop(x);
gotoAndPlay("notloadedyet");
} else {
_root.progress.gotoAndStop(x);
gotoAndPlay("myframeisloaded");
}
////
(I changed the names a bit to make more sense out of context)
Now, when I run this, some frames routinely ARE NOT LOADED even though they pass this test.
Should I be using _framesloaded/ifFrameLoaded instead?
-Chilton