大约有 8 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0028 秒)
... 赞同来自: zjw917329684 参考下下面的写法吧: Laya.stage.once(Event.CLICK,this,onClick); } private function onClick():void { trace("aaa"); Laya.stage.off(Event.CLICK,this,onClick); Laya.timer.once(500,this,onLoop); } private function onLoop():void { Laya.stage.once(Event.CLICK,this,onCl...
来源: Laya_社区 发布时间: 20170619
...可!var Loader = laya.net.Loader; var Handler = laya.utils.Handler; var Event = laya.events.Event; // 创建TestPageUI的子类 function TestUI() { TestUI.super(this); //list赋值,先获得一个数据源数组 var arr = ; for (var i = 0; i < 100; i++) { arr.push({label: "item " + i, clip: i...
来源: Laya_社区 发布时间: 20170513
...ton; import laya.ani.bone.Templet; import laya.display.Sprite; import laya.events.Event; import laya.utils.Browser; import laya.utils.Stat; import laya.webgl.WebGL; public class ASDemo { private var mAniPath:String; private var mFactory:Templet; private var mCurrIndex:int = 0; private var mArmature:...
来源: Laya_社区 发布时间: 20170406
...例子我们本地查下package { import laya.display.Sprite; import laya.events.Event; import laya.net.Loader; import laya.utils.Stat; import laya.webgl.WebGL; public class HtmlDemo { private static var sp:Sprite; public function HtmlDemo() { Laya.init(800, 480,WebGL); Stat.show(); sp=new Sprite();...
来源: Laya_社区 发布时间: 20160905
...何让一个点击事件执行完立即移除 Laya.sg_paiui.zybut2.on(Laya.Event.CLICK,this,function(th,e){ Laya.sg_paiui.zybut1.visible = false; }) 比如说这个事件 如何让他执行完立即移除 2017-10-11 添加评论 免费帖 --> ...
来源: Laya_社区 发布时间: 20171011
...troy() 150*****745 • 2018-06-05 12:06 我用的是Laya.stage.on(Laya.Event.CLICK, this, function (e) {}),请问怎么销毁,销毁以后到下一个页面要重新绑定事件吗? Laya_Aaron • 2018-06-05 14:56 @150*****745:你的代码不给我讲我很难找到你说的这段,stage ...
来源: Laya_社区 发布时间: 20180605
...ndler otherHandler().then(res => { // 默认进度加1% this._loadScene.event("progress", .01) if (res) param = .concat((param || ), [res]) Laya.Scene.open(url, closeOther, param, complete, progress) }) } /** * 清除loading page */ clearLoadingPage() { this._loadScene = null Laya.Scene.setLoadin...
来源: Laya_社区 发布时间: 20181124
...mainSound:Laya.SoundChannel = null; this.btn_sound.on(Laya.Event.CLICK,this,function(){ dreamsSound = null; if(mainSound == null){ Laya.loader.load("res/main.mp3",Laya.Handler.create(this,function(){ ...
来源: Laya_社区 发布时间: 20190716