大约有 418 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0039 秒)
...TypeScript) 下图是运行效果 以下是新建项目,修改后的onLoaded函数。 function onLoaded(): void { //laya相关代码 var div:any = Laya.Browser.document.createElement("div"); div.style.width = "600px"; div.style.height = "400px"; Laya.Browser.document.body.appendChild(div); va...
来源: Laya_社区 发布时间: 20180707
...3",type:Laya.Loader.SOUND});Laya.loader.load(resurls, Handler.create(this, onLoaded), Handler.create(this, onLoading, null, false)); function onLoaded(){ console.log(Laya.loader.getRes(src)); } 在chrome,安卓下都是正常的,在ios和mac Safari下是undefined 放在一个sprite的click事...
来源: Laya_社区 发布时间: 20170811
...:/LayaAirProjects/myFirstLaya/bin/libs/laya.core.js:18674:22) at Loader.onLoaded (file:///D:/LayaAirProjects/myFirstLaya/bin/libs/laya.core.js:18630:22) at EventHandler.runWith (file:///D:/LayaAirProjects/myFirstLaya/bin/libs/laya.core.js:997:38) at HttpRequest.event (file:///D:/LayaAirProj...
来源: Laya_社区 发布时间: 20180925
... this.testLoadingBar_anim.on(Event.CLICK,this,()=>{ var loading : Onloading = new Onloading(); loading.popup(true); Laya.timer.loop(100, this, loading.changeValue); }); 进度条代码: import Handler = Laya.Handler; export class Onloading extends ui.LoadingUI{ constr...
来源: Laya_社区 发布时间: 20180524
...eFont (http://127.0.0.1:61385/game/code.js:803:17) at Loader.__proto.onLoaded (http://127.0.0.1:61385/game/code.js:12700:11) at HTMLImage.onload (http://127.0.0.1:61385/game/code.js:21213:15) at Image._source._source.onload (http://127.0.0.1:61385/game/code.js:20175:11) 请问...
来源: Laya_社区 发布时间: 20180306
...背景色 Laya.stage.bgColor = "#ffffff"; //加载图集成功后,执行onLoaded回调方法 Laya.loader.load("res/atlas/ui/boos.atlas", Laya.Handler.create(this, onLoaded)); function onLoaded() { // //创建一个Animation实例 // var tl = new Laya.Animation(); // //加载动画文件 // tl.load...
来源: Laya_社区 发布时间: 20190708
..."res/atlas/char_wudang01.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); this.onLoaded(); } private function onLoaded():void { //Animation.createFrames(["res/atlas/monsterbeattack/0.png","res/atlas/monsterbeattack/1.png","res/atlas/monsterbeattack/2.png"], "aa") Animation.createFrames(...
来源: Laya_社区 发布时间: 20170220
...aya.Loader.TEXT} ] Laya.loader.load(resArray,Laya.Handler.create(this,this.Onloaded),null,Laya.Loader.TEXT,0,true,null,true);*/ let event1=Laya.loader.load("eyeimf.txt", Laya.Handler.create(this, this.Onloaded), null, Laya.Loader.TEXT,0,true,null,true); //console.log(Laya.Loader.loadedMap); } 另外...
来源: Laya_社区 发布时间: 20171227
...//首先是加载资源 Laya.loader.load(atlas, Handler.create(this, this.onLoaded), Handler.create(this, this.onLoading, null, false)); /** * 加载资源进度 * @param percent 百分比 */ private onLoading(percent: number): void { this.view.box_mark.graphics.drawPie(216, 216, 216, -90, (...
来源: Laya_社区 发布时间: 20190629
...Ok (apploader.js:6059:20) at apploader.js:6038:20 at FileReader.filereader.onload (apploader.js:6732:47) >>>>>>>>>>>>>>>evalhttp://stand.alone.version/libs/laya.ui.js I/ViewRootImpl: CPU Rendering VSync enable = true I/LayaBox: alert=undefined:5155: Synta...
来源: Laya_社区 发布时间: 20180724