大约有 385 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0040 秒)
Laya_社区(216) Laya2.0_api(57) laya_api(53) Laya2.0_文档(24) Laya2.0_示例(14) Laya3.0_文档(10) Laya_示例(9) Laya3.0_api(2)
...ght-100, "#ffffff" ); Laya.stage.addChild( clickRect ); clickRect.on( Laya.Event.CLICK, this, function(){ console.log( 'adf' ) } ); 我创建一个多边形,然后添加一个点击事件就没反应。但是如果添加一个图片,点击就有反应,请问是我的写法有问题吗? 20...
来源: Laya_社区 发布时间: 20180201
...d(ListDemoView); var btn = ListDemoView.getChildByName("startbtn"); btn.on(Event.CLICK, this, clickHandler); 这样不行 2018-05-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 181*****859 赞同来自: 已解...
来源: Laya_社区 发布时间: 20180524
...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_示例 发布时间: 20240930
...300, 60, 60, Laya.Handler.create(this, function(){ ape.on(Laya.Event.CLICK, this, function(){ console.log(111) }) }));使用这段代码加载了一个60x60大小的图片(下图中骑马的那个人物),并且在加载完成的回调给这个图片添加点击事...
来源: Laya_社区 发布时间: 20180609
...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); }); ``` ![](img/1.gif)(图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); }); ``` ![](img/1.gif)(图1)
来源: Laya2.0_文档 发布时间: 20210715
...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
...3.layer = 4; ...... //切换图层按钮事件监听 changeActionButton.on(Event.CLICK, this, function():void { camera.removeAllLayers(); layerIndex ++; camera.addLayer(layerIndex%4 +1); camera.addLayer(5); }); ``` ![](img/1.gif)(图1)
来源: Laya2.0_文档 发布时间: 20210715
...不了点击事件,求助 //响应点击事件 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
...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