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

大约有 1,174 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0065 秒)

561. 不存在的资源路径问题 [ 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

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

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

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

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

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

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

564. 横向循环滚动的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

565. 射线检测报错,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

566. 怎么对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

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

568. Clip属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 68%]

...OWALL; Laya.stage.bgColor = "#232628"; //预加载资源 Laya.loader.load([this.buttonSkin, this.clipSkin, this.bgSkin], Laya.Handler.create(this, this.onSkinLoaded)); } private onSkinLoaded(): void { this.showBg(); this.createTimerAnimation(); this.showTotalSeconds(); this.createController(); } pri...

来源: Laya2.0_文档 发布时间: 20210714

569. 使用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

570. List 组件做的手风琴Demo [ 68%]

...e(100,300);         list.repeatX =1;         list.repeatY =this.arr.length;         list.itemRender =Item; //Item 为继承BOX类         list.vScrollBarSkin ="";         Laya.stage.addChild(list);         list.array =this.arr;         list.ren...

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