载入类 举例

import leon.utils.LoadManager;
import flash.events.Event;
import leon.events.LoadEvent;

var _loader:LoadManager=new LoadManager(this);
_loader.LoadImage("thumbnails/flashmo_080_movie.jpg");
_loader.x=200;
_loader.y=100;
_loader.addEventListener(LoadManager.LOADED,_loaded,false,0,true);

//function _loaded(e:Event):void{
//	trace("OK");
//}

function _loaded(e:LoadEvent):void{
	trace(e._info);
}

posted @ 2010-06-21 22:08  LT世纪  阅读(186)  评论(0编辑  收藏  举报