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

大约有 141 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0067 秒)

51. ui list 里面的元素不能点击两次 [ 77%]

... list.mouseHandler=new Handler(this,onMouse); private function onMouse(e:Event,index:Number):void { // TODO Auto Generated method stub if(e.type==Event.CLICK) { trace("click"); } } 2016-12-02 3 2 分享 微博 QZONE 微信 sunkehappy 赞同来自: @cuixueying 感谢提供方案,不过我还是想...

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

52. 最新版本IDE,如何获取http返回的json数据 [ 77%]

...a.HttpRequest(); xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE,this,completeHandler); xhr.once(Event.ERROR,this,errorHandler); xhr.once(Event.PROGRESS,this,processHandler);  var sendData = {account:"aaa",password:"bbb"} xhr.send("http://xxx/login", JSON.stringify(sendData...

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

53. [LayaNative3]2d示例程序构建发布打包后,在OpenHarmony运行闪退 [ 77%]

.../LayaProject1/release/harmony/LayaProject1/libSysCapabilities/src/main/ets/event/HandleMessageUtils.ts:2:18 Currently module for 'liblaya.so' is not verified. If you're importing napi, its verification will be enabled in later SDK version. Please make sure the corresponding .d.ts file is provided an...

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

54. 二进制图片(TypeScript-2D进阶篇(TS)-游戏加载策略) [ 77%]

...ar sp = new Laya.Sprite(); var xhr = new Laya.HttpRequest(); xhr.once(Laya.Event.COMPLETE,this,this.completeHandler); xhr.once(Laya.Event.ERROR,this,this.errorHandler); xhr.send("res/a.png","","get","arraybuffer"); } private completeHandler(data:Object):void{ //加载完成返回的data是arraybuffe...

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

55. websocket连接出错 [ 76%]

...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

56. LayaFlash把socket转成webSocket后监听不到connect事件(已解决) [ 76%]

...如下 package {     import flash.display.Sprite;     import flash.events.Event;     import flash.net.Socket;          public class TestWebSocket extends Sprite     {         public var s:Socket;                  public function TestWebSocket()         {  ...

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

57. tree异步选中问题 [ 76%]

...弄一下,== Chuan • 2018-03-24 14:57 已解决: if (e.type == Laya.Event.CLICK) { if (e.target.name == "arrow") { //Tree的开/关,当打开一个时,另一个关闭 var item:Cell = e.target.parent as Cell; if (item.dataSource.isOpen == true) { if (this.selectedIndex == -1) { th...

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

58. List选中项下滚会变 [ 76%]

...index",index); // } _proto_.onMouse = function(e,index){ if(e.type == Laya.Event.CLICK){ //console.log(e.type,index); if(this.selectedIndex !== index){ if(this.selectedIndex!==-1){ //之前选中的列表项的选中状态设置为false this.sList.setItem(this.selectedIndex,{ select : {label : "服...

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

59. laya.events.Keyboard_API3.0 [ 76%]

... Public/Protected All Inherited Externals Only exported Menu Globals "laya/events/Keyboard" Keyboard Class Keyboard Keyboard 类的属性是一些常数,这些常数表示控制游戏时最常用的键。 Hierarchy Keyboard Index Properties A ALTERNATE B BACKQUOTE BACKSLASH BACKSPACE C CAPS_LOCK C...

来源: Laya3.0_api 发布时间: 20231115

60. lib/arm/liblayaair.so 总是崩溃 [ 76%]

...14 10:57:50.024 3526-3928/? D/WifiProJNI: Received kernel message payload: event 0 08-14 10:57:50.025 3526-3928/? I/QosMonitor: postEventFromNative: msg=100,arg1=0,arg2=9 08-14 10:57:50.025 3526-3928/? W/WifiProJNI: poll before: g_monitor_fd =163 08-14 10:57:50.025 3526-3526/? I/MQoS: rtt=440,tcp_tx...

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