大约有 426 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0046 秒)
Laya_社区(278) Laya2.0_示例(37) Laya_示例(31) Laya2.0_文档(26) Laya2.0_api(18) laya_api(16) Laya3.0_文档(15) Laya3.0_api(5)
...function once(type:String, caller:*, listener:Function, args:Array = null):EventDispatcher使用 EventDispatcher 对象注册指定类型的事件侦听器对象,以使侦听器能够接收事件通知,此侦听事件响应一次后自动移除。 Parameters type:String — 事件的类型。 ...
来源: Laya_社区 发布时间: 20180304
...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
...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
... 可以加我的微信 一起研究 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
...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
...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
...接 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
...会有问题。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
...到相关结果 已邀请: 与内容相关的链接 提交 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
...var _channel:Channel = new Channel(); _channel=_sound.play( ); _channel.addEventListener(Event.SOUND_COMPLETE,onComplete); 而Laya 中用什么事件可以检测声音是否播放结束? 2017-03-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...
来源: Laya_社区 发布时间: 20170330