大约有 418 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0071 秒)
...引擎 Laya.init(500,500); var skins:Array = [ "res/button-1.png" ]; Laya.loader.load(skins, Handler.create(this, onUIAssetsLoaded)); } public function onUIAssetsLoaded():void { var btn:Button = new Button("res/button-1.png"); Laya.stage.addChild(btn); //创建隐藏的file并且把它和按钮对...
来源: Laya2.0_文档 发布时间: 20210715
...undMuted)return null; }; var tSound; if (!Browser.onMiniGame){ tSound=Laya.loader.getRes(url); } if (!soundClass)soundClass=SoundManager._soundClass; if (!tSound){ tSound=new soundClass(); tSound.load(url); Loader.cacheRes(url,tSound); }; var channel; channel=tSound.play(startTime,loops); if (!chann...
来源: Laya_社区 发布时间: 20180709
...JSON.stringify(data.url)); if(mark == 4)//确认数据全部接收后 Laya.loader.load(["res/atlas/test.atlas", "test/1.png", "test/2.png", "test/3.png"],Laya.Handler.create(this,this.onComplete)); } }.bind(this)); }else { Laya.loader.load("res/atlas/test.atlas",Laya.Handler.create(this,this.onCompl...
来源: Laya_社区 发布时间: 20190307
...lor = "#ffffff"; //加载图集成功后,执行onLoaded回调方法 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded)); function onLoaded(){ //创建一个UI实例 this.comp = new ui.ComponentDemoUI(); //添加到舞台上显示 Laya.stage.addChild(this.comp); //点击Tab...
来源: Laya2.0_文档 发布时间: 20210714
....init(600,400,Laya.WebGL); //设置Laya提供的worker.js路径 Laya.WorkerLoader.workerPath = "libs/worker.js"; //开启worker线程 Laya.WorkerLoader.enable = true; //加载引擎需要的资源 Laya.loader.load("../atlas/comp.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():v...
来源: Laya3.0_文档 发布时间: 20251010
... 07-22 15:28:49.398: E/AndroidRuntime(13400): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134) 07-22 15:28:49.398: E/AndroidRuntime(13400): at java.lang.ClassLoader.loadClass(ClassLoader.java:379) 07-22 15:28:49.398: E/AndroidRuntime(13400): at java.lang.ClassLoader.loadCla...
来源: Laya_社区 发布时间: 20190722
...ascript" src="zlib.min.js"></script> <script src='Main.max.js' loader='laya'></script> </body> </html> 然后我把MainActivity中的initEngine方法中的设置入口页面方法改成了mPlugin.game_plugin_set_option("gameUrl", "http://stand.alone.version/index_nat...
来源: Laya_社区 发布时间: 20180310
....init(600,400,Laya.WebGL); //设置Laya提供的worker.js路径 Laya.WorkerLoader.workerPath = "libs/worker.js"; //开启worker线程 Laya.WorkerLoader.enable = true; //加载引擎需要的资源 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded)); function onLoaded(){ //实...
来源: Laya2.0_文档 发布时间: 20210715
...ript //初始化引擎 Laya.init(100,100); var skins = ["res/a.png"]; Laya.loader.load(skins,Laya.Handler.create(this,onUIAssetsLoaded)); function onUIAssetsLoaded(){ var btn = new Laya.Button("res/a.png"); Laya.stage.addChild(btn); //创建隐藏的file并且把它和按钮对齐。达到位置一...
来源: Laya2.0_文档 发布时间: 20210714
... MiniAdpter.window.wx.onMessage(onGetMessage); Laya.loader.load(urlconfig,new Handler( null,onLoaded),null); function onLoaded():void { trace("urlconfigurlconfigurlconfigurlconfigurlconfigurlconfigurlconfig...
来源: Laya_社区 发布时间: 20180525