[]loadAnimation无法获取动画文件

 Main.as类:
            gameCol = new GameControl();
            gameCol.gameLoad();
 
 
 
GameControllei类:
动画文件统一在GameAni.ani内制作
 
private var aniArr:Array = [
        "res/atlas/role/hero.atlas",
        "res/atlas/role/monster/monsterA/die.atlas",
        "res/atlas/role/monster/monsterA/move.atlas"
        ];
 
Laya.loader.load(aniArr, Handler.create(this, onAni), null, Loader.ATLAS);
 
private function onAni():void
{
    var role:SimpleRole = new SimpleRole();
    Laya.stage.addChild(role);
}
 
 
 
SimpleRole类:
 
public function SimpleRole() 
{
   roleAni = new Animation();
   roleAni.loadAnimation("GameAni.ani");
}
 
 
Not found: GameAni.ani#
求帮忙看下原因
已邀请:

170*****650

赞同来自:

已解决 非常感谢!!!

cuixueying

赞同来自: 170*****650

麻烦给个可以运行的例子吧!

该问题目前已经被锁定, 无法添加新回复

商务合作
商务合作