Actionscript 3 命令预加载程序跟踪ActionScript 3中的下载进度
如何命令预加载程序跟踪下载进度Actionscript 3 命令预加载程序跟踪ActionScript 3中的下载进度,actionscript-3,image,image-gallery,preloader,image-preloader,Actionscript 3,Image,Image Gallery,Preloader,Image Preloader,如何命令预加载程序跟踪下载进度 public function loadImage(filename:String):void { // show the preloader preloader.visible = true; // set the source to the UILoader to the full size image to load and display addChild
public function loadImage(filename:String):void
{
// show the preloader
preloader.visible = true;
// set the source to the UILoader to the full size image to load and display
addChild(preloader);
//
var loadWindow:UILoader;
preloader.trackLoading("LOADING: " + (loader*100).toFixed(0) + "%");
}
收听UILoader的bytesLoaded和ByTestTotal属性 查看此链接了解有关UILoader的更多信息,页面底部有示例。
您只是在做标准SWF预加载吗?