this.Background = new cc.Scale9Sprite(‘TipsBG.png’, cc.rect(71,67,5,5));
this.Background.width = 490;
this.Background.height = 160;
this.Background.attr({
x : winsize.width / 2 + 30,
y : winsize.height / 2,
anchorX : 0.5,
anchorY : 0.5
});
this.addChild(this.Background,1);
this.Background.setVisible(false);
这段代码在IDE的调试器上是正常的,但在网页上this.Background = new cc.Scale9Sprite(‘TipsBG.png’, cc.rect(71,67,5,5));这句会报错:Uncaught TypeError: undefined is not a function
求助是什么问题?