preloader failure
hi, i've made simple preloader works fine... almost!
i thought maybe of me solve problem. here goes..
i've made basic structure looping timeline on preloader scene. on second frame i've got script:
loadedbytes = getbytesloaded();
totalbytes = getbytestotal();
loadedkbytes = math.ceil(loadedbytes/1000);
totalkbytes = math.ceil(totalbytes/1000);
if (loadedbytes == totalbytes) {
nextscene();
}
frame = int(loadedbytes/(totalbytes/100));
telltarget (_root.loader) {
gotoandstop(_root.frame);
}
i guess can figure out problem is, if you've tried simular script. when jumps next frame, entire site is, doesn't play frame 1. i've got timeline animation seemes load wrong, loads movieclips , i've declared them invisible since navigation system. need around this. preloader works fine, it's jump scene scene.
it doesn't work gotoandplay("site",1) either.
in short words: timeline animation doesn't work in scene 2 when use kind of preloader.
apriciate help!
i thought maybe of me solve problem. here goes..
i've made basic structure looping timeline on preloader scene. on second frame i've got script:
loadedbytes = getbytesloaded();
totalbytes = getbytestotal();
loadedkbytes = math.ceil(loadedbytes/1000);
totalkbytes = math.ceil(totalbytes/1000);
if (loadedbytes == totalbytes) {
nextscene();
}
frame = int(loadedbytes/(totalbytes/100));
telltarget (_root.loader) {
gotoandstop(_root.frame);
}
i guess can figure out problem is, if you've tried simular script. when jumps next frame, entire site is, doesn't play frame 1. i've got timeline animation seemes load wrong, loads movieclips , i've declared them invisible since navigation system. need around this. preloader works fine, it's jump scene scene.
it doesn't work gotoandplay("site",1) either.
in short words: timeline animation doesn't work in scene 2 when use kind of preloader.
apriciate help!
don't use scenes navigate. use goto methods , frame labels.
so, label first frame in "nextscene" (say, frame1_scene2) , use:
so, label first frame in "nextscene" (say, frame1_scene2) , use:
More discussions in ActionScript 1 and 2
adobe
Comments
Post a Comment