大约有 1,215 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0061 秒)
Laya_社区(675) Laya3.0_api(153) laya_api(104) Laya2.0_api(96) Laya2.0_文档(63) Laya2.0_示例(44) Laya_示例(42) Laya3.0_文档(38)
...ameStartView = function () { GameStartView.super(this); this.Start.on(Laya.Event.CLICK, this, this.open); console.log(this.Start); GameStartView.prototype.open = function(){ console.log("Open is ok"); } }; Laya.class(GameStartView,"GameStartView", GameStartUI); 输出:Button {toggle: false, _bitma...
来源: Laya_社区 发布时间: 20180213
...tn.label="AAAAAA"; btn.pos(200,200); Laya.stage.addChild(btn); btn.on(Laya.Event.CLICK,this,()=>{console.log("click button");}); 请问 这样监听不到button的点击事件吗?如果我创建一个ui.view a a.on 也监听不到吗 2017-11-28 添加评论 免费帖 --> 分享 微博 QZ...
来源: Laya_社区 发布时间: 20171128
... 关注: 3 人 wethinking • 2017-11-03 22:56 let ani: Laya.Animation = ((event.target) as Laya.Animation); 这样写ide为啥会有红线 Monica • 2017-11-05 11:54 @wethinking:红线?可以截图看下吗?(你用的什么语言?)
来源: Laya_社区 发布时间: 20171103
...用来加载文本、JSON、XML、二进制、图像等资源。 Hierarchy EventDispatcher Loader Index Constructors constructor Properties maxLoader retryDelay retryNum ANIMATIONCLIP ATLAS BUFFER FONT HIERARCHY IMAGE JSON MATERIAL MESH SOUND SPINE TERRAINHEIGHTDATA TERRAINRES TEXT TEXTURE2D TEXTURE...
来源: Laya3.0_api 发布时间: 20231115
...e.graphics.drawCircle(x, y, r1, color1, color1, 0); function on_down(event) { console.log("_____ kbRing2\n"); } } function laya_test() { Laya.init(Laya.Browser.clientWidth, Laya.Browser.clientHeight, Laya.WebGL); var ring = new myRing(600, 300, 18, "#087729", 40,...
来源: Laya_社区 发布时间: 20161221
... } this.rotate(vec); } } 监听的鼠标移动事件 Laya.stage.on(Laya.Event.MOUSE_UP,this,this.mouseUp); Laya.stage.on(Laya.Event.MOUSE_DOWN,this,this.mouseDown); Laya.stage.on(Laya.Event.MOUSE_MOVE,this,this.mouseMove); private mouseDown():void{ let mX:number = Laya.stage.mouseX; this.lastM...
来源: Laya_社区 发布时间: 20180113
...ference _removeReference _setCPUMemory _setCreateURL _setGPUMemory destroy event getPixels gpuCompressFormat hasListener isCreateFromURL off offAll offAllCaller on once setDDSData setHDRData setImageData setKTXData setPixelsData setSubPixelsData destroyUnusedResources load Constructors constructor n...
来源: Laya3.0_api 发布时间: 20231115
Cannot read property 'events' of undefined 打包微信后,提示events为空.Object.defineProperty(laya.events.EventDispatcher.prototype,"_events",{enumerable:false,writable:true}); 手动log"laya"时发现为undefined 附件 : --> 2018-10-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...
来源: Laya_社区 发布时间: 20181009
... var req = new laya.net.HttpRequest(); req.on(laya.events.Event.COMPLETE, this, cb_onSuccess); req.on(laya.events.Event.ERROR, this, cb_onFail); req.send(url); } // 下载jpg图片成功后,显示在舞台上,response为 bmp图片...
来源: Laya_社区 发布时间: 20170103
...structor() { super(); this.stage.on(Laya.Event.FOCUS, this, this.onFocus); this.stage.on(Laya.Event.BLUR, this, this.onBlur); Laya.timer.frameLoop(1,this,this.onFrameLoop); } private onFrameLoop():void{ ...
来源: Laya_社区 发布时间: 20180724