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

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

111. 分享:List相关(Item增删功能) [ 82%]

...   大致代码如下:package { import laya.display.Sprite; import laya.events.Event; import laya.net.Loader; import laya.ui.Box; import laya.ui.CheckBox; import laya.ui.Clip; import laya.utils.Handler; import ui.test.ListPageUI; public class LayaUISample { private var listP:ListPageUI;//UI面板...

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

112. 分享:Skeleton下Event.LABLE('label')事件的使用 [ 82%]

分享:Skeleton下Event.LABLE('label')事件的使用         LayaAir下支持龙骨的自定义事件,即动画制作中为关键帧添加的帧事件,这里不再累述,下面看个例子。 Label事件如何设置?         打开Dragonbones(或spine),选择龙骨动画...

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

113. 新手!谁懂得把下面两个文件转成layaair可以运行的代码 [ 82%]

...nager.AppManager;       import flash.display.Sprite;     import flash.events.Event;     import flash.external.ExternalInterface;     import flash.net.URLVariables;     import flash.text.TextField;     import flash.text.TextFieldAutoSize;     import flash.text.TextFormat;       impo...

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

114. List翻页效果 [ 81%]

... (index > 5) index = 5; this.setCurPage(index) } public onMouse(e: Laya.Event, index: number): void { if (e.type == Laya.Event.MOUSE_DOWN) { this.m_downValue = this.list_rule.scrollBar.value; } else if (e.type == Laya.Event.MOUSE_UP || e.type == Laya.Event.MOUSE_OUT) { if (this.m_downValue > -...

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

115. WebSocket发送与接收数据(ActionScript-LayaAir基础篇(AS3)-数据与通信) [ 81%]

...。因此实例化socket之后四个事件是我们必须监听的: ``` Event.OPEN :连接正常打开抛出的事件 Event.MESSAGE :接收到消息抛出的事件 Event.CLOSE :socket关闭抛出的事件 Event.ERROR :连接出错抛出的事件 ``` 上面这四个事件是必要的,这也是我...

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

116. 手机调试时http请求错误,返回Request failed Status:0 [ 81%]

...段: let hr = new Laya.HttpRequest(); hr.http.timeout = 5000; hr.on(Laya.Event.PROGRESS, this, this.onHttpRequestProgress); hr.once(Laya.Event.COMPLETE, this, (response)=>{ UIFactory.closeWaitBar(); this.onHttpRequestComplete(response); if(handleOk){ handleOk(response); } }); hr.once(Laya.Event...

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

117. Touch接口缺少stageX,stageY [ 81%]

...指旋转(多点触控)”有这样的代码: private onMouseDown(e: Event): void {             var touches: Array<any> = e.touches;             if (touches && touches.length == 2) {                 this.preRadian = Math.atan2(                     to...

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

118. webGL模式下 graphic画线涂鸦,一直不停画会出现线条异常 [ 81%]

...ya.Point=new Laya.Point(); pos1:Laya.Point=new Laya.Point(); __mouseDown(e:Event){ this.pos0.x=this.bmp.mouseX; this.pos0.y=this.bmp.mouseY; this.pos1.x=this.bmp.mouseX this.pos1.y=this.bmp.mouseY; this.bmp.on(Laya.Event.MOUSE_MOVE, this, this.__mouseMove); this.bmp.on(Laya.Event.MOUSE_UP, this, thi...

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

119. List翻页效果怎么实现 [ 81%]

... (index > 5) index = 5; this.setCurPage(index) } public onMouse(e: Laya.Event, index: number): void { if (e.type == Laya.Event.MOUSE_DOWN) { this.m_downValue = this.list_rule.scrollBar.value; } else if (e.type == Laya.Event.MOUSE_UP || e.type == Laya.Event.MOUSE_OUT) { if (this.m_downValue > -...

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

120. [LayaAirIDE 2.0]TextInput真机输入时显示蓝色字,求解 [ 81%]

... else { this._forgetMode(); } // 添加取消事件 this.lb_cancel.on(Laya.Event.CLICK, this, () => { // 返回登陆页 Laya.Scene.open("Auth.scene"); }); // 遍历数组添加事件 this._arrInput.forEach((element, index) => { element.on(Laya.Event.FOCUS, this, this._onInputEvent, [element, ...

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