Search tutorials
2. In the actions field, insert this code:
onClipEvent(enterFrame){
//Gets the info about the file.
total=_root.getBytesTotal();
totalkb=Math.round(total/1000);
loaded=_root.getBytesLoaded();
loadedkb=Math.round(loaded/1000);
//Calculates percent.
percent=Math.round(loadedkb/(totalkb/100));
_root.text1=percent + "% LOADED"
//Controlls our progressbar.
this._xscale=percent;
//Calculates kilobytes.
_root.text2=loadedkb + " kb of " +totalkb +" kb LOADED";
//Checks if it's donned loading.
if(loaded==total){_root.gotoAndStop(2);}
}
| » Level Basic |
|
Added: 2004-08-30 Rating: 4 Votes: 21 |
| » Author |
| New to flash site making. |
| » Download |
| Download the files used in this tutorial. |
| Download (0 kb) |
| » Forums |
| More help? Search our boards for quick answers! |
-
You must have javascript enabled in order to post comments.


Comments
There are no comments yet. Be the first to comment!