大约有 441 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0048 秒)
Laya_社区(263) Laya2.0_api(59) laya_api(55) Laya2.0_文档(21) Laya3.0_文档(16) Laya2.0_示例(15) Laya_示例(9) Laya3.0_api(3)
...件 每一次点击切换一个显示层 this.changeActionButton.on(Laya.Event.CLICK, this, function(){ //清除所有图层 this.camera.removeAllLayers(); //计数自加一 this.layerIndex ++; //设置可视图层 this.camera.addLayer(this.layerIndex%4 + 1); //将地板图层加入,地板不参...
来源: Laya2.0_文档 发布时间: 20210715
...件 每一次点击切换一个显示层 this.changeActionButton.on(Laya.Event.CLICK, this, function():void { //清除所有图层 this.camera.removeAllLayers(); //计数自加一 this.layerIndex ++; //设置可视图层 this.camera.addLayer(this.layerIndex%4 + 1); //将地板图层加入,地板...
来源: Laya2.0_文档 发布时间: 20210715
...后在 回调中 写变大的逻辑 伪代码大概这个样子 btn.on(Event.CLICK, this, onBtnClick); 然后 onBtnClick方法里面写放大的逻辑 2018-08-15 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 bububu 相关问...
来源: Laya_社区 发布时间: 20180815
...ld(list); } private function onListRender(food):void{ trace(food); food.on(Event.CLICK,this.test); } private function test():void{ trace("test"); }我换了一种思路,是在实例化Food这个对象的时候,在构造函数里,就绑定事件监听函数。但是生成的JS代码,监听范...
来源: Laya_社区 发布时间: 20180407
...laneGameInfoDialogUI;。。。(关闭按钮)this.ui.ibtn_close.on(Laya.Event.CLICK,this,this.ui.close);。。。(点击之后)Uncaught TypeError: dialog.removeSelf is not a function....求助大神谢谢啦~~~ 2017-04-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...
来源: Laya_社区 发布时间: 20170418
...ackage { import laya.display.Sprite; import laya.display.Text; import laya.events.Event; import laya.resource.HTMLCanvas; import laya.resource.Texture; import laya.utils.Browser; import laya.utils.Stat; public class LayaAirDemo { private var sp:Sprite ;//被截屏对象 private var htmlC:HTMLCanvas;...
来源: Laya_社区 发布时间: 20170822
...All Classes | Index | Frames No Frames ButtonProperties | Methods | Events Packagelaya.uiClasspublic class ButtonInheritanceButton UIComponent Sprite Node EventDispatcher ObjectImplements ISelectSubclasses CheckBox, Radio Button 组件用来表示常用的多态按钮。 Button 组件可显...
来源: Laya2.0_api 发布时间: 20190513
...dImage("res/img/m1.jpg",100,100,100,100); ctn2.addChild(gq); gq.on(Laya.Event.CLICK,this,Is); } function Is(){ console.log(1); } 2018-08-06 0 0 分享 微博 QZONE 微信 叔年心~厌世 赞同来自: 点击图片的左上所有区域都触发点击事件?为什么 2018-08-06 0 1 分享...
来源: Laya_社区 发布时间: 20180806
...hitArea = closeRect; // closeBtn 为 Laya.Button 实例 this.closeBtn.on(Event.CLICK,this,this.closeWin); private closeWin():void { console.log("the window has closed..."); } 2017-09-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...
来源: Laya_社区 发布时间: 20170920
...uctor() { super(); this.btnStart.on(Laya.Event.CLICK, this, this.startGame); } startGame(): void { //Laya.Scene.open("GameView.scene"); if (!Main.gameView) { Main.gameView = new GameView(); ...
来源: Laya_社区 发布时间: 20190510