大约有 585 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0041 秒)
Laya_社区(389) Laya2.0_api(59) laya_api(55) Laya2.0_文档(29) Laya3.0_文档(21) Laya2.0_示例(16) Laya_示例(13) Laya3.0_api(3)
...事件,务必设置好size,也就是鼠标的相应区域 btn.on(Event.CLICK,this,onChangeSkin); Laya.stage.addChild(btn); var text:Text=new Text(); text.text='切换皮肤'; text.fontSize=20; btn.addChild(text); text.pos(35,5); } private function onChangeSkin():void { curNum++; if(curNum%2!=0) ...
来源: Laya_社区 发布时间: 20170324
...eoDom { htmlvideo:Laya.HtmlVideo; constructor() { Laya.stage.on(Laya.Event.CLICK,this,this.onClick); } onClick(){ this.initVideo(); } initVideo() { this.htmlvideo = new Laya.HtmlVideo(); this.htmlvideo.setSource("https://www.layaair.com/3.x/de ... ot%3B,1); this.htmlvideo.video.addEventListener("loa...
来源: Laya_社区 发布时间: 20240305
...点击事件 点击后暂停游戏 this.pauseBtn.on(Laya.Event.CLICK, this, this.onPauseBtnClick); // 初始化UI 显示 this.reset(); } ... "Cannot read property 'on' of undefined" "TypeError: Cannot read property 'on' of undefined at new GameIn...
来源: Laya_社区 发布时间: 20171118
...audioContext.createAnalyser();analyser.fftSize = 256;Laya.stage.once(Event.CLICK,this,clickHandler); }private function clickHandler(e:Object):void{var http:HttpRequest = new HttpRequest();http.on(Event.COMPLETE,this,completeHandler);http.send("489.mp3","","get",Loader.BUFFER);}private function comp...
来源: Laya_社区 发布时间: 20181023
...错了?应该怎么用求教啊。。。。。 Laya.stage.on(Laya.Event.CLICK, this, function () { for (var i = 0; i < _outHitAllInfo.length; i++) { var name=_outHitAllInfo<em>.sprite3D.name; if(name=='ani...
来源: Laya_社区 发布时间: 20170927
...nt = 0; //.............按钮点击事件 监听 changeMeshButton.on(Event.CLICK, this, function():void{ index++; if (index % 5 === 1 ){ //切换mesh sphere.meshFilter.sharedMesh = box; } else if (index % 5 === 2){ //切换mesh sphere.meshFilter.sharedMesh = capsule; } else if(index % 5 === 3){ //...
来源: Laya2.0_文档 发布时间: 20210714
...:int):void{ //判断点击的类型 是否是点击一次 if(e.type=="click") { //如果点击的对象是button类型 if(e.target is Button) { if(HostData.gold>HostData.array[index].gold){ //我的金币是否满足购买条件 HostEvent.I.event(HostEvent.LICKLOAD,["是否花费&q...
来源: Laya_社区 发布时间: 20180522
...URL版本正常,之前用的mousedown事件播放,,难道必须要用click事件?? 大学-生活好 • 2019-03-08 13:47 @xbxxxx:是的。需要一个手动操作之后,才能播放声音。 SC–Mr.qiu • 2019-08-30 20:36 你好,请问可以问你一下,导出的web文件怎么根...
来源: Laya_社区 发布时间: 20180926
...enter"); //dialog_mc.addChild(btn); Laya.stage.addChild(btn); btn.on(Event.CLICK, this, function(){ alert("点击"); }); 点击btn并未弹出alert,我也设置了btn的size,这是为什么? 2017-01-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: ...
来源: Laya_社区 发布时间: 20170120
...ge.addChild(btnAdd); btnAdd.x=550; btnAdd.label='ADD1000'; btnAdd.on(Event.CLICK,this,onClick,[sp,panel]); } private function onClick(sp:Sprite,panel:Panel):void { trace('Add1000'); for(var i:int=0;i<1000;i++) { var button:Button=new Button('button-4.png'); button.label='button:'+i; sp.addChild(b...
来源: Laya_社区 发布时间: 20170601