cocod2d-js Lite版支持帧动画么?

    var sprite = new cc.Sprite("#soundOn0000.png");
    var animation = new cc.Animation();
    animation.addSpriteFrame(cc.spriteFrameCache.getSpriteFrame("soundOn0000.png"));
    animation.addSpriteFrame(cc.spriteFrameCache.getSpriteFrame("soundOn0001.png"));
    animation.addSpriteFrame(cc.spriteFrameCache.getSpriteFrame("soundOn0002.png"));
    animation.setDelayPerUnit(1/3);
    var action = cc.animate(animation).repeatForever();
    sprite.runAction(action);

    this._super(new cc.MenuItemSprite(sprite, null, null), new cc.MenuItemImage("#soundOff.png"));
    this.setCallback(this._soundOnOff, this);

这样写后会报错 Uncaught TypeError: Cannot call method ‘textureLoaded’ of undefined

var SoundButton = cc.MenuItemToggle.extend({

ctor:function(){
    var sprite = new cc.Sprite("#soundOn0000.png");
    var animation = new cc.Animation();
    animation.addSpriteFrame(cc.spriteFrameCache.getSpriteFrame("soundOn0000.png"));
    animation.addSpriteFrame(cc.spriteFrameCache.getSpriteFrame("soundOn0001.png"));
    animation.addSpriteFrame(cc.spriteFrameCache.getSpriteFrame("soundOn0002.png"));
    animation.setDelayPerUnit(1/3);
    var action = cc.animate(animation).repeatForever();
    sprite.runAction(action);

    this._super(new cc.MenuItemSprite(sprite, null, null), new cc.MenuItemImage("#soundOff.png"));
    this.setCallback(this._soundOnOff, this);
},

_soundOnOff:function() {
    Sound.toggleOnOff();
}

});

这个是完整代码hugryhero 里面的一个声音按钮继承类
在Lite版里面就会报错如果不支持plist 和帧动画的话,Lite版能干啥啊???

你有那张图么

— Begin quote from ____

引用第2楼ColaZhang于2015-04-21 13:30发表的 :
你有那张图么 http://www.cocoachina.com/bbs/job.php?action=topost&tid=297121&pid=1289129

— End quote

谢谢!我已经找到原因并且解决了。。
Lite版本是支持帧动画的。。但是和原生的不一样在于plist和png文件必须先预加载才能调用。