• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 298 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0050 秒)

201. 解决跨域相关! [ 59%]

...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

202. 我想在动画播放结束后加一个事件,怎么加? [ 59%]

...复 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

203. LayaAir和原生DOM交互(ActionScript-2D进阶篇(AS3)-扩展模块) [ 59%]

...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

204. HttpRequest详解(JavaScript-LayaAir基础篇(JS)-数据与通信) [ 59%]

...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

205. 3D动画无法播放 [ 59%]

...动画完成后播放站立动画             shared.on(Event.COMPLETE,this,onAniComplete,[ani]);             //播放攻击动画             ani.play(); 在unity里测试正常,导出的时候也生成了 lani文件,和Lm同放在上面的网络地址里,...

来源: Laya_社区 发布时间: 20180118

206. 微信小游戏运行导出项目的时候报错:Scene: the .lh file root type must be Scene [ 58%]

...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

207. GlowFilter和TimeLine/Tween一起用的问题 [ 58%]

...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

208. 碰撞检测 outHitInfo.distance 一直等于 -1 ?(TS代码) [ 58%]

...lic currentAction:string = "stand"; /*角色动画是否完成*/ public aniComplete:Boolean = true; /*角色移动速度*/ public speed:number = 0.04; /*3D摄像机*/ public camera:Laya.Camera; /*摇杆控制器*/ private rocker:RockerView; /*攻击按钮控制器*/ private attack:attackView; /*摇...

来源: Laya_社区 发布时间: 20171113

209. [LayaNative3]打包安卓发送http发送数据发送后端接收不正确 [ 57%]

...ssword: password.text }, "post", "text");         http.once(Laya.Event.COMPLETE, this, function(data:any){             var data = JSON.parse(data);         }); 附件 : --> 2024-01-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...

来源: Laya_社区 发布时间: 20240121

210. 安装layaair2-cmd一直失败 [ 56%]

...blem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR!     C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2020-02-11T10_54_16_317Z-debug.l og     2020-02-11T10_54_16_317Z-debug.log   31916 info lifecycle jpeg-recomp...

来源: Laya_社区 发布时间: 20200211