大约有 418 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0041 秒)
... GameInfo (file:///Users/moos/Company/EmersonGame/src/GameInfo.js:4:18) at onLoaded (file:///Users/moos/Company/EmersonGame/src/Game.js:43:25) at EventHandler.__proto.runWith (file:///Users/moos/Company/EmersonGame/bin/libs/laya.core.js:724:59) at ResInfo.__proto.event (file:///Users/moos/Company/Em...
来源: Laya_社区 发布时间: 20180707
... Laya.MiniAdpter.init(true, true); //程序入口 Laya.init(750, 1334); onLoaded(); /* //激活资源版本控制 Laya.ResourceVersion.enable("version.json", Laya.Handler.create(null, beginLoad), Laya.ResourceVersion.FILENAME_VERSION); function beginLoad(){ Laya.loader.load("res/atlas/...
来源: Laya_社区 发布时间: 20180507
...) { Laya.init(500,400); Laya.loader.load("unpack.json",Handler.create(this,onLoaded),null,Loader.JSON); } private function onLoaded():void { var json:JSON=Laya.loader.getRes("unpack.json"); var str:String=JSON.stringify(json); trace(str); } } } 2017-08-07 0 0 分享 微博 QZONE 微信 为什么被...
来源: Laya_社区 发布时间: 20170802
...roto.event (http://stand.alone.version/lib ... 169:30) at Texture.__proto._onLoaded (http://stand.alone.version/lib ... 5598:8) at EventHandler.__proto.run (http://stand.alone.version/lib ... 393:26) at ResInfo.__proto.event (http://stand.alone.version/lib ... 164:52) at LoaderManager.__proto._endLo...
来源: Laya_社区 发布时间: 20190302
...400); Laya.loader.load("walk.png",Handler.create(this,onLoaded)); } private function onLoaded():void { var texture:Texture=Laya.loader.getRes("walk.png"); //计算好UV,创建新的texture ...
来源: Laya_社区 发布时间: 20160506
...init(700,600); Laya.loader.load('res/apes/monkey2.png',Handler.create(this,onLoaded)) } private function onLoaded():void { var texture:Texture=Loader.getRes('res/apes/monkey2.png'); var sp:Sprite=new Sprite(); var matrix:Matrix=new Matrix(); matrix.rotate(Math.PI/4); matrix.translate(150,100); sp.gr...
来源: Laya_社区 发布时间: 20170414
...景颜色 Laya.stage.bgColor = "#ffffff"; //加载资源成功后,执行onLoaded回调方法 Laya.loader.load([this.skin1,this.skin2],Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //创建一个CheckBox实例cb1 var cb1:Laya.CheckBox = new Laya.CheckBox(this.skin1); //添加...
来源: Laya2.0_文档 发布时间: 20210715
... = "full"; Laya.stage.bgColor = "#ffffff"; //加载图集成功后,执行onLoaded回调方法 Laya.loader.load("./res/atlas/ui.atlas", Handler.create(this, onLoaded)); } private function onLoaded():void { //创建一个UI实例 comp = new ComponentDemoUI(); //添加到舞台上显示 Laya.stage.ad...
来源: Laya2.0_文档 发布时间: 20210715
...change(function (){ var file = new FileReader();//读取文件2进制 file.onload = function(e){ var base64 = e.target.result; var img = new Image();//创建一个图片对象 img.onload = function (){ var canvas = $("#canvas").get(0); var ctx = canvas.getContext("2d"); //使用drawImage显示图片...
来源: Laya_社区 发布时间: 20170111
...andler(this, this.completeHandler)); } //添加地图到Scene2D下 private onLoaded(): void { this.tMap.mapSprite().removeSelf(); this.owner.addChild(this.tMap.mapSprite()); } //地图加载完成的回调 private completeHandler(e: any = null): void { this.onLoaded(); } } 编译运行代码,效...
来源: Laya3.0_文档 发布时间: 20251010