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

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

931. native环境下动态载入脚本并执行 [ 56%]

...本并执行。   ``` Laya.loader.load("http://118.17.23.1:9877/xxx.js", Handler.create(this, onLoad));//as3 ``` 2017-10-25 2 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica - 知识达人 赞同来自: 可以...

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

932. 有打地鼠游戏的源代码吗? [ 56%]

...Air引擎)TS》的视频教程是否有配到代码下载? 源代码中Handler中的setTo()方法 打地鼠例子练习问题 打地鼠游戏遇到的问题 模仿教程里的打地鼠写的代码,运行报错 打地鼠添加按钮出错 示例打地鼠发布打包后提示TypeError: this.prei...

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

933. this.animation.loadAtlas 加载失败 [ 56%]

...取改animation的内存大小 this.animation.loadAtlas(this.resUrl, Laya.Handler.create(this, this.loadCompleted, [completeFun]), this.resUrl);   2017-09-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixuey...

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

934. dialog如果在close动画播放完毕后删除 [ 56%]

...同来自: ethan 抱歉,今天回复的有问题,你直接监听closeHandler即可,这个函数会再dialog的clsoe动画播放完成后回调 private function onClick():void { dialog.closeHandler=Handler.create(this,onClosed); } private function onClosed():void { trace("close"); } 2017-07-03 ...

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

935. 图片设置mask有毛边 [ 56%]

...loadImage(SKINS.HEXA_GRID_BG, 0, 0, this.hexaSize.w, this.hexaSize.h, Laya.Handler.create(this, function () { index++; if (index >= views.length) { img.mask = imgMask; } })); imgMask.addChild(tmpMask);       附件 : --> 2020-06-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...

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

936. Animation用法疑问 [ 55%]

...么用?API并没有说明如何使用。 2. loadAtlas(url:String, loaded:Handler = null, cacheName:String):Animation 加载并播放一个图集。cacheName设置了以后又有什么用?API同样没有说明如何使用。 3. loadImages(urls:Array, cacheName:String):Animation 加载图片集...

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

937. Loader.BUFFER的问题 [ 55%]

...行解压,采用的是以下语句: Laya.loader.load("config.zip", Laya.Handler.create(this, this.configLoaded,["config.zip"]), null, Laya.Loader.BUFFER, 1, true)   private configLoaded(url):void {     var data:Object = Laya.loader.getRes(url);     console.log(data)     var e = new Zlib.Inf...

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

938. 这个怎么解决 [ 55%]

...der.onReadNativeCallBack (http://127.0.0.1:38746/game/code.js:41764:25) at Handler.__proto.runWith (http://127.0.0.1:38746/game/code.js:709:28) at Function.success (http://127.0.0.1:38746/game/code.js:34388:33) at Object.success (http://127.0.0.1:38746/game/__ ... :20858) at c (http://127.0.0.1:3874...

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

939. 微信小游戏中如何加载XML文件? [ 55%]

...如何加载XML文件? 使用Laya.loader.load("res/xml/info.xml", Laya.Handler.create(null, onLoadedXML),null,Laya.Loader.XML);来加载xml文件,在网页中能正常加载,在微信小游戏中显示 request:fail invalid url "res/xml/info.xml"。 2018-05-19 添加评论 免费帖 --> 分享 ...

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

940. demo里面加载资源 .lh报错 [ 55%]

...git上面的资源 Laya.loader.create([ "res/u3d/grid/plane.lh", ], Laya.Handler.create(this, this.onPlaneComplete));   附件 : --> 2019-05-15 添加评论 已悬赏15元 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 sand 赞同来...

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