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

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

461. 分享个资源加载的方法,类似白鹭的加载方式 [ 70%]

...n(srcName: string,caller: any){ Laya.loader.load("res/" + srcName,new Laya.Handler(caller,function(arg: any){ if(arg){ RES.groups = arg.groups; RES.resources = arg.resources; RES.getInstance().event(RES.ONLOADEDRESJSON,arg); }else{ RES.getInstance().event(RES.ONLOADERRORRESJSON,arg); } })) } /** * g...

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

462. VScrollBar属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 70%]

...ar; import laya.ui.ScrollBar; import laya.ui.VScrollBar; import laya.utils.Handler; import laya.webgl.WebGL; public class UI_ScrollBar { /***垂直滚动条资源**/ private var skins:Array=["../../../../res/ui/vscroll.png", "../../../../res/ui/vscroll$bar.png", "../../../../res/ui/vscroll$down.png"...

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

463. HScrollBar属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 70%]

...ar; import laya.ui.ScrollBar; import laya.ui.VScrollBar; import laya.utils.Handler; import laya.webgl.WebGL; public class UI_ScrollBar { /***水平滚动条资源**/ private var skins:Array=["../../../../res/ui/hscroll.png", "../../../../res/ui/hscroll$bar.png", "../../../../res/ui/hscroll$down.png"...

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

464. load方法的progress回调进的次数太少了。是我哪里设置有问题么 [ 70%]

...了。是我哪里设置有问题么 load(url: any, complete?: laya.utils.Handler, progress?: laya.utils.Handler, type?: string, priority?: number, cache?: boolean): LoaderManager; 是因为资源太少么。 2016-10-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...

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

465. 关于下拉列表 [ 70%]

...是服LAYA,哎,搞了我一晚上,真心不行 this.small_map.selectHandler = new Laya.Handler(this, onSelect_small); this.big_map.selectHandler = new Laya.Handler(this, onSelect_big); function onSelect_small(e) { Laya.big_switch = 0 Laya.maptype = "small" this.now_map.text = "当前地图:"...

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

466. 对象池pool与数组的区别 [ 70%]

...其克隆对象,统计面板的显存和内存就会显示成负数 Laya.Handler.create和new Laya.Handler有啥区别 我用list.array=Array;数据全部插进去数组里了,但是list中没有完全展示数组数据,只展示了其中的图片部分,数组能console出,那个list中的...

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

467. 用ide打包后的图片,Texture显示不出来? [ 70%]

...   代码 : Laya.loader.load([{url: "comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); function onLoaded(){     var aa = new Sprite();     Laya.stage.addChild(aa);     var texture = new Laya.Texture();     texture.load('comp/zzw.png' );     setTimeout( function(){   ...

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

468. 华为手机SoundManage.playSound有问题 [ 70%]

...有问题 华为手机 SoundManager.playSound("GameSound/aa/bb.mp3", 1,new Handler(this,soundComplete,[aa,bb])); 没有音效  上面执行完毕后 不会 执行soundComplete private function soundComplete(aa,bb):void { //执行代码 }   2018-03-14 添加评论 免费帖 --> 分享 微博 QZONE ...

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

469. Laya.SoundManager.playSound报错 [ 70%]

...on 赞同来自: SoundManager.playSound("../../res/sounds/btn.mp3", 1, new Handler(this, onComplete));  SoundManager.playMusic("../../res/sounds/bgm.mp3", 1, new Handler(this, onComplete));   https://layaair.ldc.layabox.co ... eDemo 2018-06-14 0 1 分享 微博 QZONE 微信 Laya_Aaron 赞同来自...

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

470. ts版本,开发微信小游戏,wxlocal的问题,,, [ 70%]

...p地址 然后去加载wxlocal里面的资源,   Laya.loader.load(arr, Handler.create(this, this.onLoadComplete),Handler.create(this, this.onLoading, null, false)); 发现并没有去加载这个资源,加断点发现一样走到了URL.formatURL 这个函数里面, 然后和前面设置的...

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