Loading on Flash

Create a Movie Clip. Make the dynamic text inside the movie clip & give Instant name is "tx1" and Var Name is "text".

Write this script on Movie Clip.

onClipEvent (load) {
total = _root.getBytesTotal();
}
onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
percent = int(loaded/total*100);
this.tx1.text = percent+"%";
this.gotoAndStop(percent);
if (loaded == total && total>380 && a != 1) {
a = 1;
_root.gotoAndPlay(2);
}

}


By  
Vicky Kumar

0 comments:

Post a Comment