大约有 337 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0044 秒)
Laya_社区(267) Laya2.0_文档(21) Laya2.0_示例(10) Laya_示例(9) laya_api(8) Laya3.0_api(8) Laya2.0_api(8) Laya3.0_文档(6)
...建请求 let httpRequest = new Laya.HttpRequest(); httpRequest.once(Laya.Event.COMPLETE, this, (data)=>{ let byte = new Laya.Byte(data); byte.writeArrayBuffer(data, 4); let blob = new Laya.Browser.window.Blob([data], {type:'image/apng'}); let url = Laya.Browser.window.URL.createObjectURL(blob); ...
来源: Laya_社区 发布时间: 20190430
...; }; var tSkBuffer=Loader.getRes(this._skBufferUrl); if (!tSkBuffer){ this.event(/*laya.events.Event.ERROR*/"error","load failed:"+this._skBufferUrl); return; } //MODIFIED:使用formatPath进行路径过滤 this._path=this.formatPath(this._skBufferUrl.slice(0,this._skBufferUrl.lastIndexOf("/"))+"/")...
来源: Laya_社区 发布时间: 20190419
... new Test (Test.js:3) at onAssetLoaded (LayaUISample.js:64) at EventHandler.__proto.runWith (laya.core.js:681) at ResInfo.__proto.event (laya.core.js:460) at LoaderManager.__proto._endLoad (laya.core.js:11993) at Loader.onLoaded (laya.core.js:11972) at EventHandle...
来源: Laya_社区 发布时间: 20170621
...d; private initSocket(): void { this.on(Laya.Event.OPEN, this, this.onConected); this.on(Laya.Event.ERROR, this, this.onError); } public conectToServer(): void { //“连接”按钮的回调 if (this.connected...
来源: Laya_社区 发布时间: 20170602
...c initTemplet(){ this.mFactory = new Laya.Templet(); this.mFactory.on(Laya.Event.COMPLETE, this, this.parseComplete); // this.mFactory.on(Laya.Event.STOPPED,this,this.parseComplete); this.mFactory.on(Laya.Event.ERROR, this, this.onError); this.mFactory.loadAni("res/games/Game_ddz/animation/ddz_figur...
来源: Laya_社区 发布时间: 20190821
...; if (!data){ this.event(/*laya.events.Event.ERROR*/"error","file not find"); return; } // console.log("this['_atlasPath']---->",this['_atlasPath']); ...
来源: Laya_社区 发布时间: 20180615
...n.as的代码如下: package { import flash.display.Sprite; import flash.events.Event; public class Main extends Sprite { public function Main() { if (stage) init(); else addEventListener(Event.ADDED_TO_STAGE, init); } private function init(event:Event = null):void { removeEventListener(Event.ADDE...
来源: Laya_社区 发布时间: 20151218
...链接 提交 2 个回复 189*****192 赞同来自: Sean8023 Laya.stage.on(Event.MOUSE_UP, this, onApeRelease); Laya.stage.on(Event.MOUSE_DOWN, this, onApeRelease); 通过 Event 类型 监听动作 class Event { /** 一个空的 Event 对象。用于事件派发中转使用。*/ ...
来源: Laya_社区 发布时间: 20170601
...0,Laya.WebGL); this.m_templet = new Laya.Templet(); this.m_templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.m_templet.on(Laya.Event.ERROR,this,this.onError); this.m_templet.loadAni("res/spine/goblins/goblins.sk"); } private onError():void { console.log("parse error"); } private parseC...
来源: Laya_社区 发布时间: 20180126
...= Laya.stage.height / 2; ufo.play("ludo_ufo_kaishi", false); ufo.once(Laya.Event.STOPPED, this, () => { ufo.play("ludo_ufo_feixing", true); }); ufo.on(Laya.Event.LABEL, this, (e) => { if (e.name == "xiaoshi") { ufo.offAllCaller(this); // ufo.removeSelf(); } }); })); } genSpine(url, hand...
来源: Laya_社区 发布时间: 20220530