大约有 517 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0043 秒)
...leMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#ffffff"; Stat.show(); this.startFun(); } startFun() { const Templet = Laya.Templet, Event = Laya.Event; const mAniPath = "res/spine/spineRes2/goblins.sk"; mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, this.parseComplete); mFactory.on...
来源: Laya2.0_示例 发布时间: 20241117
...张png类型资源 Laya.loader.load("res/apes/monkey0.png", Handler.create(this, this.onAssetLoaded1)); // 加载多张png类型资源 Laya.loader.load( ["res/apes/monkey0.png", "res/apes/monkey1.png", "res/apes/monkey2.png"], Handler.create(this, this.onAssetLoaded2)); } onAssetLoaded1(texture) { /...
来源: Laya2.0_示例 发布时间: 20241117
...})(); function connect() { hr = new HttpRequest(); hr.once(Event.PROGRESS, this, onHttpRequestProgress); hr.once(Event.COMPLETE, this, onHttpRequestComplete); hr.once(Event.ERROR, this, onHttpRequestError); hr.send('http://xkxz.zhonghao.huo.inner.layabox.com/api/getData', 'name=myname&psword=xxx', '...
来源: Laya_示例 发布时间: 20241117
... function BackGround() { //定义背景1 this.bg1 = null; //定义背景2 this.bg2 = null; //初始化父类 BackGround.__super.call(this); this.init(); } //注册类 BackGround ...
来源: Laya_社区 发布时间: 20170311
...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.connect(); this.showLogger(); } connect() { const HttpRequest = Laya.HttpRequest, Event = Laya.Event; hr = new HttpRequest(); hr.once(Event.PROGRESS, this, this.onHttpRequestProgress); hr.once(Event.COMPLETE, this, this....
来源: Laya2.0_示例 发布时间: 20241117
...何给loadprogress传参数? Laya.loader.load(myurl,Laya.Handler.create(this,this.loadComplete),Laya.Handler.create(this,this.loadprogress,["param"])); /** * 加载进度 */ private loadprogress(data:Array<any>):void{ console.log("加载进度: " + data);//加载进度: param }Laya.Handler...
来源: Laya_社区 发布时间: 20170221
...})(); function connect() { hr = new HttpRequest(); hr.once(Event.PROGRESS, this, onHttpRequestProgress); hr.once(Event.COMPLETE, this, onHttpRequestComplete); hr.once(Event.ERROR, this, onHttpRequestError); hr.send('http://xkxz.zhonghao.huo.inner.layabox.com/api/getData?name=myname&psword=xxx', null...
来源: Laya_示例 发布时间: 20241117
...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.connect(); this.showLogger(); } connect() { const HttpRequest = Laya.HttpRequest, Event = Laya.Event; hr = new HttpRequest(); hr.once(Event.PROGRESS, this, this.onHttpRequestProgress); hr.once(Event.COMPLETE, this, this....
来源: Laya2.0_示例 发布时间: 20241117
...el/LayaMonkey/LayaMonkey.lh"]; Laya.loader.create(resource, Handler.create(this, onComplete)); } private function onComplete():void { //记载场景 var scene:Scene3D = Laya.stage.addChild(new Scene3D()) as Scene3D; //加载相机 var camera:Camera = scene.addChild(new Camera(0, 0.1, 100)) as Camera...
来源: Laya2.0_文档 发布时间: 20210714
...bgColor = "#232628"; Laya.loader.load([texture1, texture2], Handler.create(this, onAssetsLoaded)); })(); function onAssetsLoaded() { ape = new Sprite(); Laya.stage.addChild(ape); ape.pivot(55, 72); ape.pos(Laya.stage.width / 2, Laya.stage.height / 2); // 显示默认纹理 switchTexture(); ape.on("c...
来源: Laya_示例 发布时间: 20241117