resource.js:
var res = { tauren_animation: "res/eff/tauren.ExportJson", tauren_plist: "res/eff/tauren0.plist", tauren_png:"res/eff/tauren0.png", };app.js:
//动画文件信息放到动画数据管理器里面
ccs.armatureDataManager.addArmatureFileInfo(res.tauren_animation);
//从动画数据管理器里面创建名叫tauren的动画对象
armature = new ccs.Armature("tauren");//播放tauren里面名叫loading的动画
armature.animation.play("loading"); armature.x = cc.winSize.width>>1; armature.y = cc.winSize.height>>1; armature.setScale(0.5);this.addChild(armature);