大约有 393 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0040 秒)
Laya_社区(221) Laya2.0_api(57) laya_api(53) Laya2.0_文档(24) Laya2.0_示例(14) Laya3.0_文档(13) Laya_示例(9) Laya3.0_api(2)
...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); }); ``` (图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
...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
...色 this.label.bgColor = "#ff0400"; start(): void { this.color_btn.on(Laya.Event.CLICK, this, this.onTipClick); } if(tipBtn == this.color_btn){ this.label.bgColor = "#ffffff"; 2019-07-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...
来源: Laya_社区 发布时间: 20190722
...3-4-1 其中,加载dom音频报错,怎么回事? package{import laya.events.Event;import laya.net.HttpRequest;import laya.net.Loader;import laya.utils.Browser; public class Main{private var AudioContext:Object;private var audioContext:Object;private var analyser:Object;private var audioBuffer...
来源: Laya_社区 发布时间: 20181023
...); createDialog("444",400,400); createDialog("555",500,500); Laya.stage.on(Event.CLICK,this,onClick); } private function onClick():void { alert(Dialog.manager.numChildren+"");//manager是DialogManager的实例,创建多少个dialog,manager下就有多少的子对象 var dia:Dialog=Dialog.manager...
来源: Laya_社区 发布时间: 20170606
... this.btn = this.owner; this.btn.on(Laya.Event.CLICK,this,this.cli) } cli(){ /// how to 获得text 对象,并改变text的值??? } 2020-04-12 添加评论 免费帖 --> 分享 微...
来源: Laya_社区 发布时间: 20200412