大约有 4,338 项符合查询结果, 库内数据总量为 30,789 项。 (搜索耗时: 0.0078 秒)
Laya_社区(2450) Laya3.0_api(673) Laya2.0_api(357) laya_api(289) Laya2.0_文档(271) Laya_示例(157) Laya2.0_示例(116) Laya3.0_文档(25)
....Handler; seltInf._list0.renderHandler = new Handler(this, onListRender1); function onListRender1(item,index) { var btn=item.getChildByName('btn_true'); trace(btn); btn.on(Laya.Event.CLICK,this,function(){ trace("dadasdads"); }); } cuixueying • 2017-08-04 11:36 把可以运行的例子...
来源: Laya_社区 发布时间: 20170215
...建 Parameters url: string Returns boolean off off(type: string, listener: Function): EventDispatcher off(type: string, caller: any, listener?: Function, args?: any[]): EventDispatcher Inherited from EventDispatcher.off Defined in laya/events/EventDispatcher.ts:112 从 EventDispatcher 对象中删...
来源: Laya3.0_api 发布时间: 20231102
...打出的APK 报apploader.js:4515 TypeError: addGlobalValueDefine is not a function 升级到2.2.0Beta报错Uncaught TypeError: Class constructor Sprite cannot be invoked without 'new' 关于graphics.drawTexture方法设置纹理报错TypeError: texture.getIsReady is not a function Cannot read prope...
来源: Laya_社区 发布时间: 20190418
...体位移物理对象,保持物理世界不变*/ public function get worldRoot():Sprite { return _worldRoot || Laya.stage; } public function set worldRoot(value:Sprite):void { _worldRoo...
来源: Laya_社区 发布时间: 20181122
...this.worker = new Worker(WorkerLoader.workerPath); this.worker.onmessage = function(evt:any):void { //接收worker传过来的数据函数 (this as any as WorkerLoader).workerMessage(evt.data); } } 回调函数this指向有问题 附件 : --> 2019-08-02 添加评论 免费帖 --> 分享 微博 QZONE...
来源: Laya_社区 发布时间: 20190802
...andler; /** * ... * @author ww */ public class TestTTFLoader { public function TestTTFLoader() { Laya.init(1000, 900); Laya.loader.load("res/remember.ttf",new Handler(this,test)); } private function test():void { var text:Text; text = new Text(); text.fontSize = 30; text.color = "#ff000...
来源: Laya_社区 发布时间: 20191211
...}3、Data的相关代码public class Data extends EventDispatcher { public function Data() { } protected function dataSourceChange(eventType:String, property:String, value:Object):void { var data:* = this[property]; this[property] = value; if (value != data) { var result:Boolean = event(eventType , ...
来源: Laya_社区 发布时间: 20161223
...iderShape (laya.d3.js:27198) at new GameUI (GameUI.js:30) at Function.ClassUtils.getInstance (laya.core.js:9634) at SceneLoader.create (laya.core.js:20746) at EventHandler.__proto.run (laya.core.js:1111) at SceneLoader.__proto.event (laya.core.js:882) at Sce...
来源: Laya_社区 发布时间: 20181016
...(width,height)是我理解问题,还是我写错了呢。。。。 function Init(){ Laya.init(800,600); bg = new laya.display.Sprite(); bg.loadImage("res/bg.png"); bg.pos(0,0); bg.width = 100; bg.height = 100; bg.size(100,100); Laya.stage.addChild(bg); } 2016-07-11 添加评论 免费帖 -->...
来源: Laya_社区 发布时间: 20160711
...出的错误提示为: Uncaught TypeError: tex.once is not a function at Graphics.__proto.drawTexture (laya.core.js:1438) at onloaded (laya.core.js:1737) at Graphics.__proto.loadImage (laya.core.js:1733) at Function.Animation.create...
来源: Laya_社区 发布时间: 20171015