大约有 341 项符合查询结果, 库内数据总量为 30,897 项。 (搜索耗时: 0.0045 秒)
Laya_社区(268) Laya2.0_文档(21) Laya2.0_示例(10) Laya_示例(9) Laya3.0_文档(9) laya_api(8) Laya3.0_api(8) Laya2.0_api(8)
...0,Laya.WebGL); this.m_templet = new Laya.Templet(); this.m_templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.m_templet.on(Laya.Event.ERROR,this,this.onError); this.m_templet.loadAni("res/spine/goblins/goblins.sk"); } private onError():void { console.log("parse error"); } private parseC...
来源: Laya_社区 发布时间: 20180126
...= Laya.stage.height / 2; ufo.play("ludo_ufo_kaishi", false); ufo.once(Laya.Event.STOPPED, this, () => { ufo.play("ludo_ufo_feixing", true); }); ufo.on(Laya.Event.LABEL, this, (e) => { if (e.name == "xiaoshi") { ufo.offAllCaller(this); // ufo.removeSelf(); } }); })); } genSpine(url, hand...
来源: Laya_社区 发布时间: 20220530
...链接 提交 1 个回复 cuixueying 赞同来自: function TestUI() { var Event = laya.events.Event; TestUI.super(this); this.ani1.play(15);//play的第一个参数是从第几帧开始播放 Laya.stage.on(Laya.Event.CLICK,this,onClick); } Laya.class(TestUI, "TestUI", TestPageUI); function onClick(...
来源: Laya_社区 发布时间: 20170526
...ByName("boxSpaw"); //this.spriteSpaw.loadImage("../..") buttonTest.on(Laya.Event.CLICK,this,()=>{ let point = new Laya.Point(this.sprteCenter.x,this.sprteCenter.y); let pointGlobal = this.sprteCenter.localToGlobal(point); Laya.stage.addChild(this.boxSpaw); this.boxSpaw.x = pointGlobal.x; this.box...
来源: Laya_社区 发布时间: 20190221
...如下: 以下是代码: protected onEnter(){ this.img_sample.on(Laya.Event.CLICK, this, this.onImgClick); Laya.loader.load("res/atlas/comp/skeleton.atlas"); //创建动画模板 this.templet = new Laya.Templet(); this.templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.templet.on(L...
来源: Laya_社区 发布时间: 20180905
...个按钮,confirm, cancel, 在InputTxtDialog 类里面cancel_btn.on(Event.CLICK, this, this.onCancel));没有反映,但是在调用InputTxtDialog的地方InputTxtDialog.cancel_btn.on(Event.CLICK, this, this.onCancel));是没有问题的,同样的代码,粘出来就行,在里面就不...
来源: Laya_社区 发布时间: 20180907
... 图片添加点击事件 有的不生效 HttpRequest感觉没有发成功 event自定义事件的问题 微信小游戏与加载图片时不会触发erroe事件 问题状态 最新活动: 2018-05-15 15:52 浏览: 729 关注: 4 人
来源: Laya_社区 发布时间: 20180330
...接 this.socket.connectByUrl("ws://localhost:8899"); this.socket.on(Laya.Event.OPEN, this, this.openHandler); this.socket.on(Laya.Event.MESSAGE, this, this.receiveHandler); this.socket.on(Laya.Event.CLOSE, this, this.closeHandler); this.socket.on(Laya.Event.ERROR, this, this.errorHandler); } private...
来源: Laya_社区 发布时间: 20180210
...容相关的链接 提交 1 个回复 cuixueying 赞同来自: 找到laya.events.MouseManager类文件,将该类下的以下代码注释重新编译即可 //canvas.oncontextmenu = function(e:*):* { // if (enabled) return false; // } //e.preventDefault(); 有6句,需要全部注释...
来源: Laya_社区 发布时间: 20170112
...:8383"); output = socket.output; socket.on(Event.OPEN, this, this.onSocketOpen); socket.on(Event.CLOSE, this, this.onSocketClose); socket.on(Event.MESSAGE, this, this.onMessageReveived); socket.on(Event.ERROR, this, this...
来源: Laya_社区 发布时间: 20171206