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

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

201. 限制区域拖动效果,为什么会无法限制呢? [ 66%]

...eginLoad() { Laya.loader.load("res/atlas/comp.atlas", Handler.create(null, onLoaded)); }  function onLoaded() { Laya.stage.addChild(new GolfMainUI()); }   附件 : --> 2018-06-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...

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

202. VBOX动态增加的元素没有自动布局 [ 66%]

...l: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { //实例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); }         完整项目请见附件。 附件 : --> testvbox.rar 2017-07-25 添加评论 免费帖 --...

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

203. ToolTip鼠标悬停的使用 [ 65%]

...olor="#eeffcc"; Laya.loader.load("res/atlas/comp.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { this._testTip=new TestTipsUI();//务必在Laya.init后去new实例,不可直接在全局变量处实例化 //切记,无论何种鼠标提示方式,务必...

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

204. 部分IOS机型在加载mp3音频文件时出错,资源加载异常 [ 65%]

...   Laya.loader.load(resArray, Laya.Handler.create(this, () => { this.OnLoaded() }), null, Laya.Loader.ATLAS);     }在IOS部分机型,如苹果8上,会出现资源加载出错,截图如附件一所示。 Load(): void {         var resArray: Array<any> = [        ...

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

205. list里面可以加入多个view吗? [ 65%]

...olor="#EEFFCC"; Laya.loader.load("res/atlas/comp.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { list=new List(); Laya.stage.addChild(list); list.itemRender=Item; list.repeatX=1; list.repeatY=6; list.x=((Laya.stage.width-Item.WID)/2); list.y=((Laya.stage....

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

206. 分包项目, 加载js时报错 [ 65%]

...)     at LoaderManager.__proto._endLoad (AA.max.js:9492)     at Loader.onLoaded (AA.max.js:9469)     at EventHandler.__proto.runWith (AA.max.js:674)     at Loader.__proto.event (AA.max.js:453) 附件 : --> testA_B.zip 2017-07-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...

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

207. 微信小游戏利用开放域好友关系链做排行榜 [ 65%]

...    Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, this.onLoaded));     }      private onLoaded(): void {         console.log("onLoaded ......");         GameBootstrap.wxPostMessage({             cmd:1,             text: 'hello',  ...

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

208. js进度,进度,js场景进度效果 [ 65%]

...a.Handler.create(this, this.onAssetLoaded), Laya.Handler.create(this, this.onLoading, null, false), Laya.Loader.ATLAS); }; //加载完成后 p.onAssetLoaded = function() {}; //加载进度 p.onLoading = function(num) { //先添加进度组件UI if (!this.Progress) { this.Progress = new Progress(); t...

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

209. canvas下资源清理的问题 [ 65%]

...([{url: "res/atlas/task.atlas", type: Loader.ATLAS}], Handler.create(this, onLoaded));         }                  private function hide():void         {             if(taskView)             {                 taskView.destroy();           ...

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

210. 小游戏启用版本管理本地资源加载报错解决方案 [ 64%]

...][url=){]){ var tempData=MiniFileMgr.ziyuFileData[/url][url=;]; thisLoader.onLoaded(tempData); return; } if (!MiniFileMgr.getFileInfo(url)){ if (MiniFileMgr.isLocalNativeFile([b]url[/b])){[/url] 改为[url=;] var urlType=Utils.getFileExtension(url); if ((MiniLoader._fileTypeArr.indexOf(urlType)!=-1)...

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