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

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

41. laya.ui.TextArea [ 79%]

...ll Classes | Index | Frames No Frames TextAreaProperties | Methods | Events Packagelaya.uiClasspublic class TextAreaInheritanceTextArea TextInput Label Component Sprite Node EventDispatcher Object TextArea 类用于创建显示对象以显示和输入文本。 Public Properties Hide Inherited...

来源: laya_api 发布时间: 20170929

42. 微信小游戏加载资源问题 [ 79%]

...completeHandler], false); this.completeHandler = null; } this.stop(); this.event(Laya.Event.COMPLETE); return; } if (this.loops > 0) { this.loops--; } this.startTime = 0; this.play(); } play() { this.isStopped = false; Laya.SoundManager.addChannel(this); this._audio.play(); } set startTime(time) ...

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

43. laya.ui.TextArea [ 79%]

...ll Classes | Index | Frames No Frames TextAreaProperties | Methods | Events Packagelaya.uiClasspublic class TextAreaInheritanceTextArea TextInput Label UIComponent Sprite Node EventDispatcher Object TextArea 类用于创建显示对象以显示和输入文本。 Public Properties Hide Inherit...

来源: Laya2.0_api 发布时间: 20190513

44. 列表嵌套另外一个列表 [ 79%]

...seHandler = new Handler(this,onMouse);//当list被点击时触发 并发送event,index } public function onRender(cell:Box,index:int):void { //当list刷新时接收并更改单元格属性 var hero:Image = cell.getChildByName("hero")as Image;//根据名字查找要更改的单元格 hero....

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

45. Laya.Event.MOUSE_MOVE的触发问题 [ 78%]

Laya.Event.MOUSE_MOVE的触发问题 switch (e.type) case Laya.Event.MOUSE_MOVE:有的手机点击就触发move,例如个别oppo机,iphonexr 有的手机点击不触发move,例如iphone12pro 附件 : --> 2021-11-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...

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

46. 使用方向键 控制精灵在格子中移动 [ 78%]

... 可以加我的微信 一起研究 13890999   事件 Laya.stage.on(Laya.Event.KEY_UP,this,this.onkeyup); Laya.stage.on(Laya.Event.KEY_DOWN,this,this.onkeydown); Laya.timer.frameLoop(1,this,this.loop);事件响应 onkeyup(e){ for(let i:number = 0;i<this.keyList.length;i++){ if(this.keyList[i]==e...

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

47. HttpRequest 回调方法都没执行 LayaAir 1.7.17 beta JS版本 [ 78%]

...tp = new Laya.HttpRequest(); //new一个HttpRequest类 this.http.once(Laya.Event.PROGRESS,this,this.onProgress); //数据传输中 this.http.once(Laya.Event.COMPLETE,this,this.onComplete); //数据传输完成后,会返回一个data this.http.once(Laya.Event.ERROR,this,this.onError); //数据传...

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

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

49. 最新版本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

50. 二进制图片(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