大约有 418 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0039 秒)
...加到舞台 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
...添加到舞台 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所示,我们很快捷的实现了遮罩的效果。  (...
来源: Laya2.0_文档 发布时间: 20210714
...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
...通过 Laya.loader.load("res/atlas/公告.json", Laya.Handler.create(null, onLoad), null, Laya.Loader.ATLAS); 这样加载的图集资源怎么清除掉??? 2018-01-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个...
来源: Laya_社区 发布时间: 20180124
... 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
MovieClip事件没有用 onLoaded方法没有调用,console.log没有弹出。我想动画先停止,然后我控制播放 附件 : --> 2017-07-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞...
来源: Laya_社区 发布时间: 20170707
...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
.../预加载图集 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
... 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
...... 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