• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 569 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0037 秒)

341. LAYAAIR加载SWF无线循环 [ 53%]

...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

342. 用IDE编辑器编辑好label,想弄点击文字变色功能,发现有问题 [ 53%]

...不知道是什么问题。以下是测试的简单代码: this.a6.on("click",this,onB);function onB(e) { etg = e.target; etg.color = "#ff0000"; } 2016-06-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica...

来源: Laya_社区 发布时间: 20160606

343. popup设置了关闭效果后,窗口关闭但遮罩层没有关掉,请问如何处理 [ 53%]

... = 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

344. EffectAnimation 可以将对象指定到Image,并用程式控制播放吗? [ 52%]

...拉了一个 EffectAnimation 将其套在按钮在,并设定playEvent为click,测试后可以正常运作。 想请问如果要一张图片的动画,可以也套用此EffectAnimation,并且用程式控制运作吗? 附件 : --> 2018-05-30 添加评论 免费帖 --> 分享 微博 QZONE 微...

来源: Laya_社区 发布时间: 20180530

345. 关闭指定定时器timer [ 52%]

...在继续调用回调,并没有报错。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

346. 区块地图-PerspectiveWall [ 52%]

...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

347. l龙骨动画内存上升 [ 52%]

... 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

348. Sprite设置mask属性为什么显示是透明的?怎样才能显示正常? [ 52%]

...(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

349. clip清除一遍资源后再加载就无法显示了!有demo! [ 52%]

... 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

350. 为什么 List 组件的鼠标mouseHandler 没有MOUSE_MOVE事件? [ 52%]

...? 为什么 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