大约有 569 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0037 秒)
Laya_社区(381) Laya2.0_api(59) laya_api(55) Laya2.0_文档(29) Laya2.0_示例(16) Laya3.0_文档(13) Laya_示例(13) Laya3.0_api(3)
...000; mc.height=700; mc.on("click", this, onAniClick); trace("mcwidth:"+mc.width+"mcheight:"+mc.height); // mc.on(Event.LOADED,this,onComp); // mc.on(Event.COM...
来源: Laya_社区 发布时间: 20170804
...不知道是什么问题。以下是测试的简单代码: this.a6.on("click",this,onB);function onB(e) { etg = e.target; etg.color = "#ff0000"; } 2016-06-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica...
来源: Laya_社区 发布时间: 20160606
... = Laya.Handler.create(this, this.hideEffect); this.btnClose.on(Laya.Event.CLICK, this, this.closeDialog); } //关闭 closeDialog(): void { this.close(); } //关闭效果 hideEffect(): void { Laya.Tween.to(this,{y:Laya.stage.height,alpha:0},200,Laya.Ease.linearIn); } //显示效果 showEffect(): voi...
来源: Laya_社区 发布时间: 20190121
...拉了一个 EffectAnimation 将其套在按钮在,并设定playEvent为click,测试后可以正常运作。 想请问如果要一张图片的动画,可以也套用此EffectAnimation,并且用程式控制运作吗? 附件 : --> 2018-05-30 添加评论 免费帖 --> 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20180530
...在继续调用回调,并没有报错。this.StartToRound.on(Laya.Event.CLICK,null,function(){ Laya.timer.loop(10,this,round);//10ms 一秒100次 }); //转动逻辑 function round(){ tlate.rotation+=roundTurnChange(1); console.log(tlate.rotation); } //转动变量变化 function roundTurnChange(ty...
来源: Laya_社区 发布时间: 20160718
...Laya.stage.bgColor = "#232628"; this.createMap(); Laya.stage.on(Laya.Event.CLICK, this, this.onStageClick); } createMap() { const TiledMap = Laya.TiledMap, Rectangle = Laya.Rectangle; this.tiledMap = new TiledMap(); this.tiledMap.createMap("res/tiledMap/perspective_walls.json", new Rectangle(0, 0, L...
来源: Laya2.0_示例 发布时间: 20240930
... Laya.stage.bgColor = "#ffffff"; Laya.stage.on(Event.CLICK, this, play); } function play():void { Laya.timer.loop(5000, this, function():void { playDragonBonesAnimation("BigAward/BigAwar...
来源: Laya_社区 发布时间: 20170406
...(0, 0, Laya.stage.width, Laya.stage.height, "#000000"); mask.on(Laya.Event.CLICK,this,chick); function chick(){ mask.destroy(); gameContainer.destroy(); } gameContainer.mask=mask; Laya.stage.addChild(gameContainer); })(); })(); 附件 : --> 2020-06-03 添加评论 免费帖 --> 分享 微...
来源: Laya_社区 发布时间: 20200603
... Laya.stage.scaleMode = Stage.SCALE_FULL; Stat.show(); Laya.stage.on(Event.CLICK,this,clickFun); } private function clickFun():void { if( clip == null ){ clip = new Clip("1.png",6,6); Laya.stage.addChild(clip); clip.play(); }else{ clip.dispose(); clip = null; } } 请官方给一个解决方案 目...
来源: Laya_社区 发布时间: 20171128
...? 为什么 List 组件的鼠标mouseHandler 没有MOUSE_MOVE事件? click game.max.js:66644 mousedown game.max.js:66644 mouseout game.max.js:66644 mouseover game.max.js:66644 mousedown game.max.js:66644 mouseout 2game.max.js:66644 mouseover 2game.max.js:66644 mouseout game.max.js:66644 mouseove...
来源: Laya_社区 发布时间: 20170412