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

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

231. 动效模板(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 61%]

...加到舞台 Laya.loader.load("./res/atlas/ui.atlas",Handler.create(this,onLoaded)); } private function onLoaded():void { //实例导出的UI类 var efc:EffectAnimationDemoUI = new EffectAnimationDemoUI(); //添加到舞台 Laya.stage.addChild(efc); } } } ``` 运行后,按钮被按下时,动画...

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

232. 设置遮罩(ActionScript-LayaAir基础篇(AS3)-位图) [ 61%]

...添加到舞台 Laya.loader.load("res/atlas/ui.atlas",Handler.create(this,onLoaded)); } private function onLoaded():void { var cMask:maskDemoUI = new maskDemoUI(); Laya.stage.addChild(cMask); } } } ``` 运行效果如图10所示,我们很快捷的实现了遮罩的效果。 ![图10](img/10.jpg) (...

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

233. 微信小游戏报错 the .lh file root type must be Scene [ 61%]

...oto.onAsynLoaded (http://127.0.0.1:62629/game/code.js:81644:10) at ResInfo.onLoaded (http://127.0.0.1:62629/game/code.js:12995:61) at EventHandler.__proto.runWith (http://127.0.0.1:62629/game/code.js:711:59) at ResInfo.__proto.event (http://127.0.0.1:62629/game/code.js:483:28) at LoaderManager.__pro...

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

234. 如何清理预加载的图集资源??? [ 61%]

...通过 Laya.loader.load("res/atlas/公告.json", Laya.Handler.create(null, onLoad), null, Laya.Loader.ATLAS); 这样加载的图集资源怎么清除掉??? 2018-01-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个...

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

235. Image [ 61%]

...       img___.src="res/card/select_main_card_bg.png"         img___.onload = function(){             var image = new Laya.Image()             image.source = img___             Laya.stage.addChild(image)         } 舞台上没有图   2017-01-22 添加评论 免费帖 --...

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

236. MovieClip事件没有用 [ 61%]

MovieClip事件没有用 onLoaded方法没有调用,console.log没有弹出。我想动画先停止,然后我控制播放 附件 : --> 2017-07-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞...

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

237. 请大家帮助优化一下这个抛物线的代码 [ 61%]

...bGL); Laya.loader.load("res/atlas/war.atlas",Laya.Handler.create(this,this.onLoaded),null,Laya.Loader.ATLAS); } private onLoaded():void{ this.ball = new Ball(); Laya.stage.addChild(this.ball); this.ball.x = Laya.stage.width / 2; this.ball.y = Laya.stage.height / 2; Laya.stage.on(Laya.Event.CLICK,thi...

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

238. 关于大量图片加载绘制后的内存暴增的疑问 [ 60%]

.../预加载图集 Laya.loader.load("res/atlas/bag.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { sp=new Sprite(); Laya.stage.addChild(sp); //每隔0.05秒出现下张图片 Laya.timer.loop(50,this,onLoop); } private function onLoop():void { //更改textur...

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

239. http请求能否取消 [ 60%]

... http:* = this._http; http.onerror = http.onabort = http.onprogress = http.onload = null; } 2016-12-05 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 zhjinshiboy 相关问题 Texture图片能否进行翻转? TypeScript下HttpRequest发...

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

240. android下layabox调用Laya.Texture2D.load报错 [ 60%]

...... 5771:8) 02-06 14:59:43.858  6545  6658 I LayaBox :     at ResInfo.onLoaded (http://10.0.1.72/game/dev-loca ... 913:61) 02-06 14:59:43.858  6545  6658 I LayaBox :     at EventHandler.__proto.runWith (http://10.0.1.72/game/dev-loca ... 711:59) 02-06 14:59:43.858  6545  6658 I LayaBox :...

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