|
-
Preloader 1001
Hi I have a litle problem with my preloader.
In my preloader movie I have this script( see below) where I load "index.swf" into "holder".
When I test it, it will only output 0% and 100% loaded,
when I try to set down the bandwidth to see the progress it will not show the percentage
anyone knows why?
regards Thomas
The script
this.createEmptyMovieClip("holder",1);
holder.loadMovie("index.swf");
this.onEnterFrame=function(){
//trace the percentage of the movie that has loaded
percent=(this.holder.getBytesLoaded()/this.holder.getBytesTotal())*100;
if(!isNan(percent)){
trace(percent+"% loaded");
}else{
trace("0% loaded");
}
if(percent == 100){
delete this.onEnterFrame;
}
}
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
|