大约有 717 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0041 秒)
Laya_社区(623) Laya2.0_文档(49) Laya3.0_文档(25) laya_api(4) Laya_示例(4) Laya3.0_api(4) Laya2.0_示例(4) Laya2.0_api(4)
...ader = laya.net.Loader; var UI; Laya.init(600, 400); Laya.loader.load("res/atlas/template/Tab栏.json", Laya.Handler.create(this, onAssetLoaded2), null, Loader.ATLAS); function onAssetLoaded2() { Laya.class(MyBoot, "MyBootClass", MyBootPage2UI); UI = new MyBootClass(); Laya.stage.a...
来源: Laya_社区 发布时间: 20160722
...引擎 Laya.init(800, 600); //预加载所需资源 Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(this, this.onLoaded)); } private onLoaded(): void { //实例化Panel组件 var panel: Laya.Panel = new Laya.Panel(); //给panel添加背景色 panel.graphics.drawRect(0, 0, 100, 100, "#ff...
来源: Laya2.0_文档 发布时间: 20210715
... var image:Image = new Image(); image.skin = "res/atlas/clanwar_bg.jpg?" + Math.random(); Laya.stage.addChild(image); var index:int = 0; Laya.stage.timerLoop(1, this, function():void{index++;image.alph...
来源: Laya_社区 发布时间: 20190110
...liuhang_1988 • 2017-11-22 11:28 我现在是资源发布目录在bin/res/atlas, html发布目录在bin/res。但是分离模式的efc文件会把json文件输出到bin目录,part文件输出到bin/res。而且,part的资源默认获取路径也是在bin目录下,我是想这个json也输出...
来源: Laya_社区 发布时间: 20171122
... lusky 赞同来自: Laya.init(1200, 400); Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { var hbox: laya.ui.HBox = new laya.ui.HBox(); for (var i: number = 0; i < 10; i++) { var skin: string; switch (i) { ca...
来源: Laya_社区 发布时间: 20170607
... to XMLHttpRequest at 'file:///E:/Game-SuperMary/SuperMary/release/web/res/atlas/option.atlas' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https. load(url) { var ...
来源: Laya_社区 发布时间: 20200107
...引擎 Laya.init(800,600); //预加载所需资源 Laya.loader.load("res/atlas/comp.atlas",Handler.create(this,onLoaded)); } private function onLoaded():void { //实例化Panel组件 var panel:Panel = new Panel(); //给panel添加背景色 panel.graphics.drawRect(0,0,100,100,"#ffcccc"); //给panel...
来源: Laya2.0_文档 发布时间: 20210715
...UISample() { Laya.init(1540, 990); Laya.Stat.show(); Laya.loader.load("res/atlas/war.json", Laya.Handler.create(this, this.onLoaded), null, Laya.Loader.ATLAS); Laya.loader.on(Event.ERROR, this, onError); } protected function onError(error:String):void { trace(error); } protected function onLoaded():...
来源: Laya_社区 发布时间: 20161026
... //加载动画图集,加载成功后执行回调方法 this.roleAni.loadAtlas("res/atlas/imgs/role/wp116.atlas", Laya.Handler.create(this, this.onLoaded)); } private onLoaded(): void { //添加到舞台 Laya.stage.addChild(this.roleAni); //创建动画模板dizziness Laya.Animation.createFrames(t...
来源: Laya_社区 发布时间: 20171228
...面单独建立文件夹打包) Laya.loader.load("res/atlas/gameUI.atlas",Handler.create(this,this.gameStart)); } 2018-01-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...
来源: Laya_社区 发布时间: 20180105