大约有 271 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0041 秒)
...leX:1, scaleY:1, alpha:1},2000,null,0); timeLine.play(0,true); timeLine.on(Event.COMPLETE,this,this.onComplete); timeLine.on(Event.LABEL, this, this.onLabel); } private function onComplete():void { trace("timeLine complete!!!!"); timeLine.pause(); timeLine.destroy(); // Laya.timer.frameOnce(10, this...
来源: Laya_社区 发布时间: 20170327
...代码来添加保护:var data:*; data=Loader.getRes(_url); if (!data) { event(Event.ERROR,"file not find"); return; } //保护修改-----start------------------ var atlasData:Object = Loader.getAtlas(_atlasPath); if(!atlasData) { event(Event.ERROR,"file not find"); return; } //保护修改-----en...
来源: Laya_社区 发布时间: 20180908
touches一直为undefined Laya.stage.on(Laya.Event.MOUSE_DOWN, this, onCtrlMoveRockerTouchDown); ...... function onCtrlMoveRockerTouchDown(e) { console.log("onCtrlMoveRockerTouchDown()"); var touches = e.touches; if(touches) { ...取出前两个touch进行计算 } }...
来源: Laya_社区 发布时间: 20171202
...钮的监听 //下拉菜单信息按钮监听 this.AllTitleButton.on(Laya.Event.MOUSE_DOWN, this, ButtonClickManager.clickinstance.AllTitleButtonClick); 而在另外的一个单例脚本中单例分离了执行方法 因为按钮监听太多 需要分离 监听和执行 /** * 基础信息按钮...
来源: Laya_社区 发布时间: 20190410
...按钮button。 2,在场景中加入了鼠标点击事件 Laya.stage.on(Event.MOUSE_DOWN,this,sceneClick); private function sceneClick():void { trace("scene clicked"); } 3,在button上添加按钮功能 button.on(Event.CLICK,this,onBtn); private function onBtn(e:Event):void { e....
来源: Laya_社区 发布时间: 20180917
...window.conch.setFontFaceFromBuffer is not a function Cannot read property 'events' of undefined TypeError: Laya.MovieClip is not a constructor 问题状态 最新活动: 2020-03-10 09:40 浏览: 1595 关注: 2 人 Ame • 2020-03-10 15:54 我在第一个场景设置了autoDestroyAt=true,跳转到第...
来源: Laya_社区 发布时间: 20200309
...ockArea.cs:341) UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize) (at D:/unity/Modules/UIElements/IMGUIContainer.cs:298) UnityEngine.UIElements.IMG...
来源: Laya_社区 发布时间: 20190910
...相关的链接 提交 3 个回复 Laya_Aaron 赞同来自: button.on(Laya.Event.CLICK, this, function(event:Laya.Event){ console.log("点击到了UI"); event.stopPropagation(); }); 完整代码 2018-05-30 0 17 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 你这个问题描述的很明确,...
来源: Laya_社区 发布时间: 20180529
...e:///E:/EarlyChildhood/EARLY_GAME_001/bin/libs/laya.tiledmap.js:165:20) at EventHandler.__proto.runWith (file:///E:/EarlyChildhood/EARLY_GAME_001/bin/libs/laya.core.js:670:60) at Loader.__proto.event (file:///E:/EarlyChildhood/EARLY_GAME_001/bin/libs/laya.core.js:450:29) at Loader.__proto.endLoad (f...
来源: Laya_社区 发布时间: 20170124
...ineVersion.v3_8); this.templet.loadAni(this.aniPath); this.templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.templet.on(Laya.Event.ERROR, this, this.onError); }加载方式用的官方案例,本地跑是没问题的 2021-12-07 0 0 分享 微博 QZONE 微信 northTg 赞同来自: 有...
来源: Laya_社区 发布时间: 20211207