-
I have made a movie which preloads a number of external movies. It is working fine, but I can't get the loader bar to work. here's the code:
actBytes = eval("_level" add movielevel).getBytesLoaded() || 0;
totBytes = eval("_level" add movielevel).getBytesTotal() || 100;
percent = Math.round(actBytes * 100 / totBytes);
********this is the script for the loaderbar movie********
frame = int(actBytes/(totBytes/100));
tellTarget (_root.loader) {
gotoAndStop (_root.frame);
}
if( totBytes - actBytes > 10){
gotoAndPlay(3);
} else if(actMovieIdx < moviearray.length){
gotoAndPlay(2);
}
The rest of the code is working fine, I'm sure it's something simple to get this working, I just can't put my finger on it.
Kindest Regards
-
frame = int(actBytes/(totBytes/100));
tellTarget (_root.loader) {
gotoAndStop (_root.frame);
}
Try this instead:
frame = int(actBytes/(totBytes/100));
tellTarget (_root.loader) {
gotoAndStop (frame);
}
-
I'm afraid it didn't work.
Thanks for your help though.
Kindest regards
tyranid
-
It doesn't matter now, I've found a better way to doit.
regards
tyranid
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|