mboat as3 自定义组件问题 使用报错。这个是按教程来的,教程地址:https://ldc.layabox.com/doc/?nav=zh-as-2-2-3 可能某些地方不对,求指导。谢谢。 有人遇到同样的问题吗,有的话在后面+1.附件:test_custom.rar test_custom.rar0B
mboat cuixueying ide环境里面:D:\work\layawork\LayaAirIDE_beta\resources\app\out\vs\layaEditor\renders\custom\ScaleButton.js;那么ScaleButton.xml->内容: className="component.ScaleButton"。是对的吗
mboat cuixueying 还有ScaleButton.js,内容:(function(window,document,Laya){ var __un=Laya.un,__uns=Laya.uns,__static=Laya.static,__class=Laya.class,__getset=Laya.getset,__newvec=Laya.__newvec;})(window,document,Laya);不知道是不是正确
mboat 历时两天终于搞定。自定义组件的时候,要用editorUI类库,要注册自定义的组件。目前有报错,但没关系,只要能生产js就好,上demo。引擎版本:1.7.11 ScaleButtonDemo-AS.rar0B