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

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

151. http 请求 once 的 回调参数,如何传递和接收? [ 77%]

...function once(type:String, caller:*, listener:Function, args:Array = null):EventDispatcher使用 EventDispatcher 对象注册指定类型的事件侦听器对象,以使侦听器能够接收事件通知,此侦听事件响应一次后自动移除。 Parameters type:String — 事件的类型。  ...

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

152. 超出文本区域的处理&滚动文本(JavaScript-LayaAir基础篇(JS)-文本) [ 77%]

...javascript (function() { var Stage = Laya.Stage; var Text = Laya.Text; var Event = Laya.Event; var Browser = Laya.Browser; var WebGL = Laya.WebGL; var txt; var prevX = 0; var prevY = 0; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL...

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

153. 求HTTP相关的文档或者例子谢谢了 [ 77%]

...taFormat.VARIABLES*/"variables";             this.publicloader.addEventListener(/*iflash.events.Event.COMPLETE*/"complete",BIND$(this,this.checkListComp));             this.url=new URLRequest("wished.php");             this.url.method=/*iflash.net.URLRequestMethod.POST*/"P...

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

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

... 可以加我的微信 一起研究 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

155. 脚本的事件(ActionScript-3D基础(AS3)-LayaAir3D的脚本使用) [ 76%]

...oid {} /** * 键盘按下时执行 */ public override function onKeyDown(e:Event):void {} /** * 键盘产生一个字符时执行 */ public override function onKeyPress(e:Event):void {} /** * 键盘抬起时执行 */ public override function onKeyUp(e:Event):void {} /** * 每帧更新时执行 */ pu...

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

156. iPhone6 ios 8.3系统 最新的QQ 锁屏再解锁 游戏闪退 [ 76%]

...te"; } //监听QQ内置浏览器切换至后台事件  window.document.addEventListener("qbrowserVisibilityChange", function(e):void{ trace("监听QQ缩小至后台事件:"+(!e.hidden ? "前置显示":"后台隐藏")); isStopLoop = e.hidden; if (e.hidden) { _isVisibility = false; if (_this._isInput...

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

157. socket与node服务端连不上?按照官方案例 [ 76%]

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

158. swf预加载问题 [ 76%]

...会有问题。package util { import laya.ani.swf.MovieClip; import laya.events.Event; import laya.events.EventDispatcher; import laya.net.Loader; import laya.utils.Handler; public class BeforLoader extends EventDispatcher { public static const BEFORLOADERFINISH:String = "BeforLoaderFinish"; private...

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

159. iphone自带浏览器页面怎么锁定 [ 76%]

...到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 marievent_gf 赞同来自: cuixueying 、q12647 找到layaflash类库 C:\Users\Administrator\AppData\Local\LayaFlash\tools\lib2.6\libs\iflash\src\iflash\events\EventManager.as   找到方法  public function acceptSystemMouseEv...

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

160. Laya 中用什么事件可以检测声音是否播放结束? [ 76%]

...var _channel:Channel = new Channel(); _channel=_sound.play( ); _channel.addEventListener(Event.SOUND_COMPLETE,onComplete); 而Laya 中用什么事件可以检测声音是否播放结束? 2017-03-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...

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