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

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

551. Dialog 关闭效果无效 [ 68%]

...ar CommonDlg = (function (_super) { function CommonDlg() { CommonDlg.super(this); } Laya.class(CommonDlg, "CommonDlg", _super); var _proto_ = CommonDlg.prototype; _proto_.closeEffect = Laya.Handler.create(null, this.onCloseEffect, null, true); _proto_.onCloseEffect = function () { console.log("in on...

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

552. 取消监听鼠标移动事件,取消不了 [ 68%]

...听鼠标移动事件,取消不了 Laya.stage.off(Laya.Event.MOUSE_MOVE,this,null); 第三个参数是函数,不能为null吗?是不是和on绑定时的同一个函数,如果on里面用匿名函数,off第三个参数怎么写? 2018-06-23 添加评论 免费帖 --> 分享 微博 QZONE 微...

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

553. 不存在的资源路径问题 [ 68%]

...没有资源也调用了加载完成, Laya.loader.on(Laya.Event.ERROR, this, this.onLibError); Laya.loader.load([{ url:com.globals.GameConfig.XML_LIB_URL, type:Loader.BUFFER }], Handler.create(this, this.onLibLoaded)); 资源是不存在的,然后还是调用了 this.onLibLoaded 这个,这种...

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

554. 求教 JS项目的Promise如何使用 [ 68%]

.../初始化舞台 Laya.init(1334, 750); //需要切换的图片资源路径 this.monkey2 = "res/img/monkey2.png"; //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; //先加载图片资源,在图片资源加载成功后,通过回调方法绘制图片并添加到舞台 Laya.loader.load(this.m...

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

555. 如何判断弹性滑动结束了? [ 68%]

...是手机浏览器还是pc浏览器? 调用动画结束on方法,报错this.zombieAnimator.on is not a function laya2.1.1 微信排行榜无法滑动,按钮也无法点击 as3.0下3D引擎中通过滑动控制camera的问题 如何判断被加载的Swf里的MovieClip播放完成? 问题状态...

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

556. 横向循环滚动的list [ 68%]

...看到代码 2019-01-09 0 0 分享 微博 QZONE 微信 - 赞同来自:  this._list.on(fairygui.Events.SCROLL, this, this.doSpecialEffect); 监听到list发生滚动,进行判断位置和修改item的大小。 2019-06-28 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要...

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

557. 射线检测报错,outHitInfo.sprite3D=null; [ 68%]

... Laya.Camera; private scene: Laya.Scene;  public _load(owner : any):void{ this.scene = owner; this.camera = this.scene.scene.getChildByName("Main Camera") as Laya.Camera; console.log("当前摄像机的名字是:" + this.camera.name); }  public _start(state:Laya.RenderState):void{ this.ray = new...

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

558. 怎么对graphics画出来的图片进行鼠标点击拖动??? [ 68%]

...e.bgColor = "#232628"; //这里是我注释掉的代码 //Laya.loader.load(this.ApePath, Handler.create(this, this.setup)); this.setup(); } private setup(): void { this.createApe(); this.showDragRegion(); } private createApe(): void { this.ape = new Sprite(); //this.ape.loadImage(this.ApePath); Laya...

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

559. canvas下资源清理的问题 [ 68%]

...hild(btn2);                          btn1.on(Event.CLICK,this,onClick);             btn2.on(Event.CLICK,this,onClick);                          Laya.loader.load([{url: "res/atlas/common.atlas", type: Loader.ATLAS}]);                       ...

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

560. 使用Handler 返回name 始终是 undefined [ 68%]

使用Handler 返回name 始终是 undefined public function RegDlg() { this.btn_submit.name = Dialog.SURE; this.closeHandler = Handler.create(this ,this.onClose, ["123"],false); } private function onClose(name:String):void{ if(name == Dialog.SURE){ var di:NormalDlg = new NormalDlg(); di.popupConte...

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