rbeau
03-05-2005, 11:07 PM
Hi All,
I have some preloader code in frame 1 of my main movie. When I run the movie it starts to move in slow motion or something like that. It's pretty weird. Can someone see what I am doing wrong? I could really use the help; I'm pretty frustrated at this point.
The following is the code I have:
stop();
var loadedBytes:Number = _root.getBytesLoaded();
var totalBytes:Number = _root.getBytesTotal();
intro_mc._visible = true;
function flashIntro() {
intro_mc._visible = !intro_mc._visible;
if(loadedBytes == totalBytes && totalBytes > 0) {
clearInterval(toggleIntro);
}
}
this.onEnterFrame = function() {
if(!(loadedBytes == totalBytes && totalBytes > 0)) {
toggleIntro = setInterval(flashIntro, 5);
}else {
_root.gotoAndPlay("Intro");
intro_mc._visible = false;
}
}
////////////////////////////////
Thanks
I have some preloader code in frame 1 of my main movie. When I run the movie it starts to move in slow motion or something like that. It's pretty weird. Can someone see what I am doing wrong? I could really use the help; I'm pretty frustrated at this point.
The following is the code I have:
stop();
var loadedBytes:Number = _root.getBytesLoaded();
var totalBytes:Number = _root.getBytesTotal();
intro_mc._visible = true;
function flashIntro() {
intro_mc._visible = !intro_mc._visible;
if(loadedBytes == totalBytes && totalBytes > 0) {
clearInterval(toggleIntro);
}
}
this.onEnterFrame = function() {
if(!(loadedBytes == totalBytes && totalBytes > 0)) {
toggleIntro = setInterval(flashIntro, 5);
}else {
_root.gotoAndPlay("Intro");
intro_mc._visible = false;
}
}
////////////////////////////////
Thanks