|
发表于 5-7-2004 07:07 AM
|
显示全部楼层
createEmptyMovieClip("mc", 0); //create一個empty的MC
mc.loadMovie("a.swf"); //把要load的swf或者jpg load到上面建立的mc裡面
mc.onEnterFrame = function() { //mc循環
percent = int(this.getBytesLoaded()/this.getBytesTotal()*100); //取得已載入的文件大小做簡單計算
trace(percent); //這裡的output得到
if(percent >= 100) {
delete this.onEnterFrame; //刪除所創建的循環
}
} |
|