var p_mcl:MovieClipLoader = new MovieClipLoader();
function onLoadInit(_mc:MovieClip) {
//这里就表示加载完成了,可以设置加载进来的SWF的坐标(坐标可以在未加载完成时设置,但其它属性不行)、大小及其它属性
_mc._x = 50;
_mc._y = 50;
_mc._width = 123;
_mc._height = 100;
}
//————加载进度显示———-
function onLoadProgress(_mc:MovieClip, bytesLoaded:Number, bytesTotal:Number) {
trace(“已加载:”+bytesLoaded/bytesTotal*100+”%”);
}
//创建一个MC来装载要加载的SWF或者图片
this.createEmptyMovieClip(“_mc”,2);
//给p_mcl添加侦听
p_mcl.addListener(this);
//加载你要的SWF
p_mcl.loadClip(“http://bbs.52znj.com/images/52znj/logo.jpg”,_mc);