大约有 4,034 项符合查询结果, 库内数据总量为 30,910 项。 (搜索耗时: 0.0076 秒)
Laya_社区(3264) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(107) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...***192 赞同来自: zjwytqm 、cuixueying 、umi_ Laya.timer.loop(1000, this, animateTimeBased);//添加 Laya.timer.clear(this,animateTimeBased); //删除 2017-06-05 3 3 分享 微博 QZONE 微信 Y_Yao 赞同来自: 清除定时器clear(); 2017-06-05 0 0 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20170605
...如何用代码触发点击事件? 比如sprite1注册了点击事件: this.sprite1.on(Laya.Event.CLICK, this, this.sprite1CallBack); 怎样不用点击,而用代码去触发? 是 this.sprite1.event(Laya.Event.CLICK) 这样吗? 2018-07-24 1 条评论 免费帖 --> 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20180724
...http.timeout = 10000;//设置超时时间; xhr.once(Laya.Event.COMPLETE, this, this.completeHandler); xhr.once(Laya.Event.ERROR, this, this.errorHandler); xhr.on(Laya.Event.PROGRESS, this, this.processHandler); xhr.send("res/data.data", "", "get", "text"); console.log("aaaa"); } private processHan...
来源: Laya2.0_文档 发布时间: 20210715
为什么显示不了 var sp = new Laya.Sprite(); sp.graphics.drawRect(this.mouse_x, this.mouse_y, 10, 10, "#ff0000"); //var htmlC:Laya.HTMLCanvas = sp.drawToCanvas(375,440,0,0).getCanvas().toDataURL(); var htmlCanvas:Laya.HTMLCanvas = sp.drawToCanvas(375,440,0,0); var texture:Laya.Texture = new La...
来源: Laya_社区 发布时间: 20180412
...onhide里面停止掉引起bug的代码 window['wx'].onShow((res) => { this.event(AppEvent.onShow, res); this.appStatus = AppEvent.onShow; console.log(this.appStatus, '---------'); Laya.stage.renderingEnabled = true//恢复渲染 Laya.updateTimer.resume() //恢复onUpdate Laya.timer.resume(); //...
来源: Laya_社区 发布时间: 20200917
...ontext.createAnalyser();analyser.fftSize = 256;Laya.stage.once(Event.CLICK,this,clickHandler); }private function clickHandler(e:Object):void{var http:HttpRequest = new HttpRequest();http.on(Event.COMPLETE,this,completeHandler);http.send("489.mp3","","get",Loader.BUFFER);}private function completeHa...
来源: Laya_社区 发布时间: 20181023
1.7的接口消失 // ZmyTestManager.Ani.on(Laya.Event.COMPLETE, this, this.OnCurrentAnimationCompleted);//循环动画完成播放单次循环 // ZmyTestManager.Ani.on(Laya.Event.STOPPED, this, this.OnCurrentAnimationStopped);//非循环动画停止播放 这个接口在2.0后就没有了 文档...
来源: Laya_社区 发布时间: 20181017
...in { constructor() { console.log(Laya.Browser.width, Laya.Browser.height); this.current = { x: 0, y: Laya.Browser.height }; // Laya.stage.bgColor = "#3F51B5"; this.sp = new Laya.Sprite(); Laya.stage.addChild(this.sp); } render() { console.log("render"); var l = [ 0, 0, 0, -(Laya.Browser.height >&...
来源: Laya_社区 发布时间: 20180602
...属性列表,比如{x:100,y:20,ease:Ease.backOut,complete:Handler.create(this,onComplete),update:new Handler(this,onComplete)}。 duration:int — 花费的时间,单位毫秒。 ease:Function (default = null) — 缓动类型,默认为匀速运动。 complete:Handler (default = null) ...
来源: laya_api 发布时间: 20170929
...sprit对象 就能正常 。 部分代码如下,动画能正常播放。 this.role = new Laya.Animation(); this.role.on(Laya.Event.MOUSE_DOWN, this, this.onDrag); 2018-07-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 ...
来源: Laya_社区 发布时间: 20180718