怎么使用TextField?
我在程序里面
var tf=new cc.TextField();this.addChild(tf);
结果报错:
— Begin quote from ____
‘webkitAudioContext’ is deprecated. Please use ‘AudioContext’ instead.
Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user’s experience. For more help, check http://xhr.spec.whatwg.org/.
Cocos2d-JS v3.5
res.StartBackground_png2
480ddd
Uncaught TypeError: Cannot read property ‘create’ of undefined
cc.Layer.extend.ctor
(anonymous function)
Class
cc.Scene.extend.onEnter
(anonymous function)
cc.Director.cc.Class.extend.setNextScene
cc.Director.cc.Class.extend.drawScene
cc.DisplayLinkDirector.cc.Director.extend.mainLoop
callback
— End quote
1.这是怎么错误?
2.还有我想在屏幕上显示一些文字是否用TextField,还是用其他显示对象?