大约有 382 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0045 秒)
Laya_社区(213) Laya2.0_api(57) laya_api(53) Laya2.0_文档(21) Laya2.0_示例(14) Laya3.0_文档(13) Laya_示例(9) Laya3.0_api(2)
...Container.loadImage("res/guide/crazy_snowball.png"); gameContainer.on(Laya.Event.CLICK, this, this.nextStep); // 引导所在容器 guideContainer = new Sprite(); Laya.stage.addChild(guideContainer); guideContainer.cacheAs = "bitmap"; // 绘制遮罩区,含透明度,可见游戏背景 maskArea =...
来源: Laya2.0_示例 发布时间: 20251130
...d(ListDemoView); var btn = ListDemoView.getChildByName("startbtn"); btn.on(Event.CLICK, this, clickHandler); 这样不行 2018-05-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 181*****859 赞同来自: 已解...
来源: Laya_社区 发布时间: 20180524
...300, 60, 60, Laya.Handler.create(this, function(){ ape.on(Laya.Event.CLICK, this, function(){ console.log(111) }) }));使用这段代码加载了一个60x60大小的图片(下图中骑马的那个人物),并且在加载完成的回调给这个图片添加点击事...
来源: Laya_社区 发布时间: 20180609
...wer.height = 100; flower.width = 100; flower.size(100,100); flower.on(Laya.Event.CLICK,this,function() { alert("My Name is Bear"); }); mallLayer.addChild(flower); mallLayer._showGridList.push(flower); 附件 : --> hxwlworld.zip 2018-07-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...
来源: Laya_社区 发布时间: 20180722
...4; ...... //切换图层按钮事件监听 this.changeActionButton.on(Laya.Event.CLICK, this, function():void { this.camera.removeAllLayers(); this.layerIndex ++; this.camera.addLayer(this.layerIndex%4 +1); this.camera.addLayer(5); }); ``` (图1)
来源: Laya2.0_文档 发布时间: 20210715
...4; ...... //切换图层按钮事件监听 this.changeActionButton.on(Laya.Event.CLICK, this, function():void { this.camera.removeAllLayers(); this.layerIndex ++; this.camera.addLayer(this.layerIndex%4 +1); this.camera.addLayer(5); }); ``` (图1)
来源: Laya2.0_文档 发布时间: 20210715
...TMLAudioElement; constructor(){ super(); this.btn_play.on(Laya.Event.CLICK, this, this.onPlay); this.elentAutio = <HTMLAudioElement>document.createElement('audio'); this.elentAutio.src="res/10.mp3"; } onPlay():void{ this.elentAutio.play(); } 由于要播放一...
来源: Laya_社区 发布时间: 20170217
...tn); console.log(btn.id); } for(var i = 0; i < 5; i++){ btns[i].on(Laya.Event.CLICK,this,judge,[i]); } function judge(aa){ console.log("___________"+aa); } 我就是这么做的,结果打印出来全是4,前面的按钮被最后的一个覆盖,这是为什么?
来源: Laya_社区 发布时间: 20180817
...宽高并刷新显示! package { import laya.display.Sprite; import laya.events.Event; import laya.ui.Button; import laya.ui.Panel; import laya.utils.Browser; import laya.utils.Handler; public class LayaUISample { public function LayaUISample() { // 不支持WebGL时自动切换至Canvas Laya.init...
来源: Laya_社区 发布时间: 20170601
...不了点击事件,求助 //响应点击事件 humanSkeleton.on(Laya.Event.CLICK,this,onclickHuman); function onclickHuman(){ console.log("onclickHuman"); } https://www.cnblogs.com/Jackie-Snow/p/8487607.html 网上的这个方式试了,没用,按照网上说是没有设置width与height ...
来源: Laya_社区 发布时间: 20180909