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

大约有 509 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0059 秒)

251. 用最新版本的IDE开发,用AS语言开发,用HttpRequest加载图片报错,用JS语言开发却可以加载 [ 56%]

...te = new Sprite(); var xhr:HttpRequest = new HttpRequest(); xhr.once(Event.COMPLETE,this,completeHandler); xhr.once(Event.ERROR,this,errorHandler); xhr.send("res/monkey2.png","","get","arraybuffer"); } private function completeHandler(data:Object):void { //加载完成返回的data是arraybuffer; ...

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

252. 安装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

253. laya.resource.Texture2D_API3.0 [ 56%]

...会忽略lock=true的资源。 Returns void Static load load(url: string, complete: Handler): void Defined in laya/resource/Texture2D.ts:240 加载纹理 Parameters url: string 路径 complete: Handler 处理时间 Returns void Globals "laya/resource/Texture2D" Texture2D constructor _id destroyedImm...

来源: Laya3.0_api 发布时间: 20231115

254. laya.ui.List [ 56%]

...件类型是否是鼠标事件。 EventDispatcher loadImage(url:String, complete:Handler = null):Sprite 加载并显示一个图片。相当于加载图片后,设置texture属性 注意:2.0改动:多次调用,只会显示一个图片(1.0会显示多个图片),x,y,width,height参数取...

来源: Laya2.0_api 发布时间: 20190513

255. Spine适配版(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 56%]

...TempletBinary(); this.templet.loadAni(this.aniPath); this.templet.on(Event.COMPLETE, this, this.parseComplete); this.templet.on(Event.ERROR, this, this.onError) } private function parseComplete(): void { this.skeleton = this.templet.buildArmature(); Laya.stage.addChild(this.skeleton); this.skeleton....

来源: Laya2.0_文档 发布时间: 20210715

256. 龙骨动画循环播放Label事件被清除 [ 56%]

...行代码. 正常的是不循环播放(间接循环播放),但是接收到complete然后再次播放. 一个是直接循环播放. cuixueying • 2016-12-15 19:49 这个确实不是bug,是这样的,当你循环播放时,实际上播放的是一个动画,所以label只会触发一次,当你...

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

257. 如何使用graphics.loadImage加载图片资源的时候,如何判断加载失败? [ 56%]

...失败? 伪代码: this.avatar.graphics.loadImage(url, 0, 0, 0, 0, __complete);这个时候,如果我的url为空或者为一个不存在的图片地址,我如何判断它加载失败呢? 我尝试使用了这样的代码来获取失败信息,但貌似没有效果的: this.avatar.on(Ev...

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

258. 3D动画无法播放 [ 56%]

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

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

259. 学习官方视频教程中飞机大战游戏出现的问题!! [ 56%]

...his.addChild(this.playAnim);             this.playAnim.on(Laya.Event.COMPLETE,this,this.onPlayComplete);         } onMouseMove():void{         //根据鼠标位移主角方法         this.hero.pos(Laya.stage.mouseX,Laya.stage.mouseY);     }     2018-05-03 0 0 分享 微博 QZO...

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

260. laya.display.Animation [ 56%]

...l:String, x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0, complete:Handler = null):Sprite 加载并显示一个图片。功能等同于graphics.loadImage方法。支持异步加载。 注意:多次调用loadImage绘制不同的图片,会同时显示。 Sprite  loadImages(urls:...

来源: laya_api 发布时间: 20170929