onClipEvent(load){
btotal=_root.getBytesTotal();//让btotal等于总下载数;
}
onClipEvent(enterFrame){
bian1=_root.getBytesLoaded();//bian1等于已下载数;
persent=Math.round(bian1/btatal*100);//persent等于已下载数与总下载数的比,因为求百分数所以乘100;
_xscale=percent;//影片剪辑长度百分比随persent的大小变化;
_parent.k=persent+"%";//在动态文本中显示下载百分比;
if(percent>=100){
在此输入想要做的事,如转入下一场景.
}

RSS订阅







