hello all, hear my plea please.
my first preloader gave trouble so i decided to load my main movie as an
external .swf file. so now, the animation play, and the preload bar starts from
0 bytes. the way i wanted it. but now, it does not play the remaining animation
when i ask it to. this is what the animation looks like [NOTE: this swf is
preloading itself, the old one i was using, but this is what i want the
animation to look like]
[L=DEMi]
http://www.geocities.com/uends/newWebIndex.html[/L]
for the setup i have now, the first part of the animation plays fine and the
preloader starts at 0, but the animation after get's stuck. the load and after
animation are on one timeline since i loaded an external file [the above have 4
scenes, the first animation, the load, the last animation, then the main page].
this file only has 2 scenes, the first animation, then "the load, last animate
and main page" on the second scene. can someone please help me. here is my code
[b]code[/b]
//::load external .swf file::
loadMovie("external.swf", container);
onEnterFrame = function(){
loadedBytes = Math.round(container.getBytesLoaded());
totalBytes = Math.round(container.getBytesTotal());
bytePercent = loadedBytes/totalBytes;
//::resize loadBar and display percentage::
_root.loadBar.loadBar._width = Math.round(bytePercent * 100);
_root.loadBar.dispText.text = "[ " + Math.round(bytePercent * 100) + "% ]";
if (loadedBytes == totalBytes){
gotoAndPlay("sFrame"); [b]//this works, but it stops at frame 5 of 15
instead of tweening the way it should[/b]
}
}
//::end of line::
stop();
[b]visual setup[/b]
timeline from frame one
|1234|567"sFrame"131415|16| |
|1234|------tween---------->|16| |
|1234|------tween---------->|16| |
the above script goes on frame 1-4, "sFrame" consist of 5-15 and it has 2
tween for the last animation. but it stops at frame 5 and refuses to
continue..... can anyone help me with this problem. thank you very much.
NOTE: the loadBar and loading part of the swf works just fine. everything
loads correclty on all test done. the problem is getting it to play all the way
after the frame jump.