为什么这个动画代码播放不了??

    //1、创建精灵
    var s = new cc.Sprite(res.h1);

    //2、创建动画类
    var animation = new cc.Animation();

    //3、添加每一帧图片到动画类中
    animation.addSpriteFrameWithFile(res.h1);
    animation.addSpriteFrameWithFile(res.h2);

    //4、设置动画的播放速度
    animation.setDelayPerUnit(0.1);

    //5、设置是否循环播放(-1为循环播放,1为不循环播放)        
    animation.setLoops(-1);

    //6、创建动画动作类Animate    
    var animate = new cc.Animate(animation);

    //7、精灵执行动作        
    s.runAction(animate);

在cocos ide 中用jsb模拟器上可以看到动画效果,浏览器打开就不行了。。没动画效果。。

我这项目是要放到微信上的。。微信也看了。。也是没动画效果的。。。

跪求。。。