[]请问如何释放atlas和他的png资源
很头疼 得不到名字啊!
请问这个有什么规律吗 坐等!
private function clickFun():void {
url = "res/CH/atlas/MORNUI_Z_Gongneng.atlas";
Laya.loader.load(url,new Handler(this,hh));
//trace( Laya.loader.getRes(url) );
}
private function hh():void {
Laya.stage.addChild(new Image("MORNUI_Z_Gongneng/clip_xue_quan.png"));
Laya.timer.once(1000,1,ddd);
}
private function ddd():void {
trace("aaa1",Laya.loader.getRes(url));
Laya.stage.removeChildren();
Laya.loader.clearRes(url);
trace("aaa2",Laya.loader.getRes(url));
}
请问这个有什么规律吗 坐等!
private function clickFun():void {
url = "res/CH/atlas/MORNUI_Z_Gongneng.atlas";
Laya.loader.load(url,new Handler(this,hh));
//trace( Laya.loader.getRes(url) );
}
private function hh():void {
Laya.stage.addChild(new Image("MORNUI_Z_Gongneng/clip_xue_quan.png"));
Laya.timer.once(1000,1,ddd);
}
private function ddd():void {
trace("aaa1",Laya.loader.getRes(url));
Laya.stage.removeChildren();
Laya.loader.clearRes(url);
trace("aaa2",Laya.loader.getRes(url));
}
没有找到相关结果
已邀请:
2 个回复
lifereset
赞同来自:
wudi199553
赞同来自: