• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 119 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0071 秒)

61. ts项目关闭多点触控 [ 66%]

...-06-14 0 1 分享 微博 QZONE 微信 lrzt 赞同来自: 我设置了 laya.events.MouseManager.multiTouchEnabled = false;没有用啊,还是能多点触控,还需要怎么做? 2018-11-30 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起...

来源: Laya_社区 发布时间: 20170614

62. HttpRequest详解(JavaScript-LayaAir基础篇(JS)-数据与通信) [ 65%]

...MLHttpRequest`和`XMLHttpRequestUpload`都继承了同一个`XMLHttpRequestEventTarget`接口所以upload也具有上述事件。 ​ ## 在laya中怎么使用 laya中用HttpRequest对XMLHttpRequest进行了简单的封装,HttpRequest继承的是EventDispatcher,具有事件派发的功能。我...

来源: Laya2.0_文档 发布时间: 20210714

63. HttpRequest详解(TypeScript-LayaAir基础篇(TS)-数据与通信) [ 65%]

...MLHttpRequest`和`XMLHttpRequestUpload`都继承了同一个`XMLHttpRequestEventTarget`接口所以upload也具有上述事件。 ​ ## 在laya中怎么使用 laya中用HttpRequest对XMLHttpRequest进行了简单的封装,HttpRequest继承的是EventDispatcher,具有事件派发的功能。我...

来源: Laya2.0_文档 发布时间: 20210715

64. 服务器websocket c++发送二进制类型包,客户端没有任何事件响应 [ 65%]

...t.endian = Byte.LITTLE_ENDIAN;//这里我们采用小端; socket.on(Laya.Event.OPEN, this, onSocketOpen); socket.on(Laya.Event.CLOSE, this, onSocketClose); socket.on(Laya.Event.MESSAGE, this, onMessageReveived); socket.on(Laya.Event.ERROR, this, onConnectError); 2017-08-22 0 1 分享 微博 QZONE ...

来源: Laya_社区 发布时间: 20170822

65. 如何监听移动端软键盘的弹出和收回? [ 65%]

...h=200; textInput.x=100; textInput.y=200; addChild(textInput); textInput.addEventListener(FocusEvent.FOCUS_IN,onFocusIn); textInput.addEventListener(FocusEvent.FOCUS_OUT,onFocusOut); private function onFocusIn(event:FocusEvent):void { textInput.text="你的键盘打开了"; } private function onFocus...

来源: Laya_社区 发布时间: 20151225

66. 场景管理 · LayaAir3.0文档 · LAYABOX [ 65%]

...完毕,此方法只执行一次 */ onAwake(): void { this.uiBtn.on(Laya.Event.CLICK, this, () => { //点击后,打开Msg场景 Laya.Scene.open("Msg.ls", false, { "text": "点击成功!" }); }); } } 其中,Scene场景有一个Button组件,需要在IDE中,将其拖入到@property暴露...

来源: Laya3.0_文档 发布时间: 20230717

67. js socket 连接不上 [ 65%]

...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_社区 发布时间: 20180509

68. 解决跨域相关! [ 65%]

...连不上, 看代码-> this.hr=new HttpRequest(); this.hr.once(Laya.Event.PROGRESS, this, this.onHttpRequestProgress); this.hr.once(Laya.Event.COMPLETE, this, this.onHttpRequestComplete); this.hr.once(Laya.Event.ERROR, this, this.onHttpRequestError); this.hr.send("http://www.baidu.com", null, '...

来源: Laya_社区 发布时间: 20151028

69. 背景音乐文件太大 播放延迟 [ 63%]

...        this.mask_value = value                 EventMgr.eventManager.event(EventMgr.EVENT_LIST)             }), Laya.Loader.SOUND, 0, true, null, false)         })       public static playBackGroundMusic(url: string, start: number) {  ...

来源: Laya_社区 发布时间: 20201102

70. 浏览器接口 · LayaAir3.0文档 · LAYABOX [ 62%]

...nt, url);// 此处最好加延迟 //监听器注册 Laya.Browser.window.addEventListener("click", (event: any) => { console.log(event.type); }) Window.open() 方法、window.postMessage()方法、Window.addEventListener()方法 3.3 container 画布 LayaAir引擎里可以通过 Laya.Browser.contai...

来源: Laya3.0_文档 发布时间: 20230810