大约有 286 项符合查询结果, 库内数据总量为 30,936 项。 (搜索耗时: 0.0040 秒)
多次调用Laya.timer.once后面函数的调用延迟时间是不是会叠加 比如说下面两个延迟调用函数,function2是不是要等1000毫秒以后才执行? Laya.timer.once(500,function1) Laya.timer.once(500,function2) 2018-03-06 添加评论 免费帖 --> 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20180306
请教Laya.timer.once如何设置回调参数 看到API文档上描述是 public function once(delay:int, caller:*, method:Function, args:Array = null, coverBefore:Boolean = true):void 但是照这个写了 Laya.timer.once(800,this,sh,[1,3,4]) 之后,在回调函数sh 里面 收到的不是数组...
来源: Laya_社区 发布时间: 20170827
休眠后,如何保持frameLoop循环调用和Laya.timer.once定时延迟进度一致 游戏主逻辑用frameLoop循环刷新。这其中可能会因玩家的操作触发某个延时执行事件Laya.timer.once 如果触发Laya.timer.once后网页休眠,Laya.timer.once依然会以现实中的经...
来源: Laya_社区 发布时间: 20170107
http 请求 once 的 回调参数,如何传递和接收? once () method public function once(type:String, caller:*, listener:Function, args:Array = null):EventDispatcher使用 EventDispatcher 对象注册指定类型的事件侦听器对象,以使侦听器能够接收事件通知,此侦...
来源: Laya_社区 发布时间: 20180304
xhr的on和once什么区别,官网例子 Laya.init(1136, 640); var xhr:HttpRequest = new HttpRequest(); xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE,this,completeHandler); xhr.once(Event.ERROR,this,errorHandler); xhr.on(Event.PROGRESS,this,processHandler); 2017-10-17 ...
来源: Laya_社区 发布时间: 20171017
请教Laya.timer.once如何设置回调参数 看到API文档上描述是 public function once(delay:int, caller:*, method:Function, args:Array = null, coverBefore:Boolean = true):void 但是照这个写了 Laya.timer.once(800,this,sh,[1,3,4]) 之后,在回调函数sh 里面 收到的不是数组...
来源: Laya_社区 发布时间: 20170827
Laya.timer.once 嵌套 的问题 layaair 1.7.7beta Laya.timer.once(800, this, function () { Laya.SoundManager.playSound("sound/readygo.mp3", 1, Laya.Handler.create(this, this.playReadyComp)); }) private playReadyComp (){ Laya.timer.once(800, this, function () { Laya.SoundManager.playMusic('sound...
来源: Laya_社区 发布时间: 20170629
js执行once时如何改变执行域 _proto.onMsgCallBack = function () { this.kwxSocket.OnMessageCallBack=function(msg){ console.log("回调"+msg); var dataTemp = JSON.parse(msg); console.log(dataTemp.d); kwxGame.prototype.cardData = dataTemp.d; [b][i]Laya.timer.once(1000, this, this.onOncePiao); ...
来源: Laya_社区 发布时间: 20170419
Laya.timer.once计时不准确的问题 import WebGL = Laya.WebGL; // 程序入口 class GameMain{ constructor() { Laya.init(600,400, WebGL); console.log("Before In One, Time = " + Date.now()); Laya.timer.once(1,this,this.One) console.log("After In One, Time = " + Date.now()); } One():void{ console...
来源: Laya_社区 发布时间: 20190827
timer.once(100,this,this.play,[参数名])在play方法中怎么获取参数名得值! 例如: var b:number = 1; Laya.timer.once(100,this,this.play,[b]); 在play():void{ }方法中如何获取b的值!!! 2018-03-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...
来源: Laya_社区 发布时间: 20180331