Basically I have a preloader that is a bit fancy. It has a small animated sequence that plays when the percentage bar reaches 100 hence the code below…
if (_root.percentage1>99) {
_root.loaderbar.gotoAndPlay(2);
(btw the loaderbar has an action that says goto frame 2 on root once it has completed its fancy animation)
Now all is well and dandy BUT IF the movie is already in cache the user SHOULDNT see the fancy animated sequence, instead it should just pop along to frame 2 in root.
FIRSTLY - Does anybody know how to do that?
SECONDLY - this is where I am currently…
onClipEvent (load) {
_root.totalbytes = _root.getBytesTotal();
_root.bytesloaded = _root.getBytesLoaded();
if (_root.bytesloaded == _root.totalbytes) {
_root.isit = “all loaded”;
}
}
onClipEvent (enterFrame) {
if (_root.percentage1<100) {
var bytes = _root.getBytesTotal();
var bytes_loaded = _root.getBytesLoaded();
_root.percentage1 = math.floor((bytes_loaded/bytes)*100);
_root.percentage = +_root.percentage1+"%";
if (_root.percentage1>99) {
_root.loaderbar.gotoAndPlay(2);
}
}
}
many thanks
xx - :tb: joe