大约有 99 项符合查询结果, 库内数据总量为 30,897 项。 (搜索耗时: 0.0037 秒)
Laya_社区(65) Laya2.0_api(9) laya_api(7) Laya3.0_api(7) Laya3.0_文档(5) Laya2.0_文档(4) Laya_示例(1) Laya2.0_示例(1)
...小,这个应该怎么做? 关于customRender函数不执行的问题 Event.CLOSE不触发 怎么获取当前触发鼠标点击的某个物体 js调as函数 undifine Event触发不了 问题状态 最新活动: 2019-06-27 11:25 浏览: 1791 关注: 2 人 177*****712 • 2019-06-27 13:53 好的...
来源: Laya_社区 发布时间: 20190627
...Url("ws://"+host+":"+port+"/hoopster"); //建立连接 this.socket.on(Laya.Event.OPEN, this, onOpen); this.socket.on(Laya.Event.MESSAGE, this, onReceive); this.socket.on(Laya.Event.CLOSE, this, this.closeHandler); this.socket.on(Laya.Event.ERROR, this, this.errorHandler); 以上代码,host传...
来源: Laya_社区 发布时间: 20180312
...完毕,此方法只执行一次 */ onAwake(): void { this.uiBtn.on(Laya.Event.CLICK, this, () => { //点击后,打开Msg场景 Laya.Scene.open("Msg.ls", false, { "text": "点击成功!" }); }); } } 其中,Scene场景有一个Button组件,需要在IDE中,将其拖入到@property暴露...
来源: Laya3.0_文档 发布时间: 20240910
...接 this.socket.connectByUrl("ws://45.78.**.**:3000"); this.socket.on(Laya.Event.OPEN, this, openHandler); this.socket.on(Laya.Event.MESSAGE, this, receiveHandler); this.socket.on(Laya.Event.CLOSE, this, closeHandler); this.socket.on(Laya.Event.ERROR, this, errorHandler); function openHandler(event)...
来源: Laya_社区 发布时间: 20180125
...03:8888"); // this.socket.connect("10.10.1.103",8888); this.socket.on(Laya.Event.OPEN, this, openHandler); //建立连接 this.socket.on(Laya.Event.MESSAGE, this, receiveHandler); //接收到数据触发函数 this.socket.on(Laya.Event.CLOSE, this, closeHandler); //关闭事件 this.socket.on(Laya.E...
来源: Laya_社区 发布时间: 20181107
... */ //*/强迫保持原本设定的FPS try { sound = new Sound(); sound.addEventListener(SampleDataEvent.SAMPLE_DATA,onWakeUp); channel = sound.play(); }catch(error:Error){}; //*/ } protected function onWakeUp(event:SampleDataEvent):void { event.data.position = event.data.length = 4096 * 4; } 这是...
来源: Laya_社区 发布时间: 20180627
...sion denied at ChildProcess.exithandler (child_process.js:223) at emitTwo (events.js:106) at ChildProcess.emit (events.js:191) at maybeClose (internal/child_process.js:885) at Socket.<anonymous> (internal/child_process.js:334) at emitOne (events.js:96) at Socket.emit (events.js:188) at Pipe._h...
来源: Laya_社区 发布时间: 20170829
...t + ":" + port; let socket:Laya.Socket = new Laya.Socket(); socket.on(Laya.Event.OPEN,this,()=>{ console.log("connect success!"); }) socket.connectByUrl(url);点此查看Socket官方示例 2018-05-15 1 0 分享 微博 QZONE 微信 rabbit 赞同来自: 只要前端的,还是要前端和后端代...
来源: Laya_社区 发布时间: 20180514
...ayEnd);视频播完为何不触发“complete”? function onPlayEnd(evt:Event){ trace("video complete"); } 为何视频播完不触发呢? http://layaair.ldc.layabox.com ... Video 这里要是可以调试该多好~ 2017-01-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...
来源: Laya_社区 发布时间: 20170116
...; a.pos(200, 200); a.mouseEnabled = true; a.mouseThrough = true; a.on(Laya.Event.MOUSE_DOWN, null, function (e: Laya.Event): void { console.log("touch a"); } 因为需要将mouseThrough=true才可以,蛋疼的api描叙你能相信是这个熟悉么? “mouseThrough : Boolean = false,指...
来源: Laya_社区 发布时间: 20161109