大约有 301 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0053 秒)
Laya_社区(179) Laya3.0_api(78) Laya2.0_文档(16) Laya2.0_示例(10) Laya_示例(9) Laya3.0_文档(7) laya_api(1) Laya2.0_api(1)
...st(); xhr.http.timeout = 10000;//设置超时时间; xhr.once(Laya.Event.COMPLETE, this, this.completeHandler); xhr.once(Laya.Event.ERROR, this, this.errorHandler); xhr.on(Laya.Event.PROGRESS, this, this.processHandler); xhr.send("res/data.data", "", "get", "text"); console.log("aaaa"); } private ...
来源: Laya2.0_文档 发布时间: 20210715
...Event.PROGRESS, this, this.onHttpRequestProgress); this.hr.once(Laya.Event.COMPLETE, this, this.onHttpRequestComplete); this.hr.once(Laya.Event.ERROR, this, this.onHttpRequestError); this.hr.send("http://www.baidu.com", null, 'post', 'text', ['Access-Control-Allow-Origin','*', 'Access-Control-Allow-...
来源: Laya_社区 发布时间: 20151028
...复 176*****233 赞同来自: geo 监听_ani的完成事件 _ani.on(EVENT.COMPLETE, this, function(){}); 2018-04-28 1 0 分享 微博 QZONE 微信 fool_tiger 赞同来自: 谢谢! 2018-05-02 0 0 分享 微博 QZONE 微信 AlexNine 赞同来自: 可以直接在play后面加个回调 function playAn...
来源: Laya_社区 发布时间: 20180428
...it(500,500); var httpreq:HttpRequest = new HttpRequest(); httpreq.on(Event.COMPLETE,this,this.completeHandler); httpreq.on(Event.ERROR,this,this.errorHandler); httpreq.send("demo1.js"); } private function completeHandler(e:Object):void { var script:Object = Browser.document.createElement("script"); ...
来源: Laya2.0_文档 发布时间: 20210715
...Request(); xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE,this,completeHandler); xhr.once(Event.ERROR,this,errorHandler); xhr.on(Event.PROGRESS,this,processHandler); xhr.send("res/data.data","","get","text"); function processHandler(data){ console.log(data); } function erro...
来源: Laya2.0_文档 发布时间: 20210714
...idth,height参数取消。</p> * @param url 图片地址。 * @param complete (可选)加载完成回调。 * @return 返回精灵对象本身。 */ loadImage(url: string, complete?: Handler): Sprite; 我们来看看代码示例: let sprite = new Laya.Sprite(); // 加载并显示一个...
来源: Laya3.0_文档 发布时间: 20251010
...动画完成后播放站立动画 shared.on(Event.COMPLETE,this,onAniComplete,[ani]); //播放攻击动画 ani.play(); 在unity里测试正常,导出的时候也生成了 lani文件,和Lm同放在上面的网络地址里,...
来源: Laya_社区 发布时间: 20180118
...e([{url:this._sceneURl, clas:MyScene}], Laya.Handler.create(this, this.loadComplete)); } private loadComplete():void { console.log("debuginfo LayaAir3D constructer loadres complete"); this._scene = MyScene.load(this._sceneURl) as MyScene; this._scene.output(); Laya.stage.addChild(this._sce...
来源: Laya_社区 发布时间: 20180317
... pausedEffects: Map<string, { position: number; completeCallback?: () => void }> = new Map(); // 回调获取方法(需在setupChannelHandlers存储回调) private callbackMap: Map<string, () => void> = new Map(); private lastKnow...
来源: Laya_社区 发布时间: 20250930
...glowFilter, {blur: 1}, 200, null, 0); } t.on(Event.COMPLETE, this, function(){ sp.filters = null; }); t.play(0, true); }; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHe...
来源: Laya_社区 发布时间: 20181012