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

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

221. 分享:改变图片皮肤,保持图片原样宽高显示 [ 84%]

...片原样宽高显示 1、使用image.skin的方式 package { import laya.events.Event; import laya.ui.Image; import laya.utils.Handler; public class LayaAirDemo { private var image:Image; public function LayaAirDemo() { Laya.init(800,600); Laya.loader.load(["bg.jpg","logo.png"],Handler.create(this,...

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

222. Native下http请求,Error事件中的error对象错误码全都是404 [ 84%]

...不应该会有这个问题才是的 比如说这个代码: this.hr.once(Event.COMPLETE, this, onHrCompleteHandler); this.hr.once(Event.ERROR , this ,onHrErrorHandler); this.hr.send($url, $data, $method, $responseType, $headers); private function onHrCompleteHandler():void { if(this.completeHandle...

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

223. 如何定义动画播放过某帧后的回调函数 [ 84%]

如何定义动画播放过某帧后的回调函数 Event Object Type: laya.events.EventEvent.type property = Event.LABEL; 如何才能实现第2帧后的回调呢 2016-12-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...

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

224. 骨骼动画进阶(ActionScript-2D进阶篇(AS3)-动画进阶) [ 84%]

...{ import laya.ani.bone.Skeleton; import laya.ani.bone.Templet; import laya.events.Event; import laya.webgl.WebGL; /** * ... * @author ww */ public class SkeletonTempletSample { public var templet:Templet; public function SkeletonTempletSample() { WebGL.enable(); Laya.init(1000, 900); //创建动画...

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

225. 版本管理swf找同名的Json文件发现找不到 [ 84%]

...;             if (!data){                 this.event(/*laya.events.Event.ERROR*/"error","file not find");                 return;             }             // console.log("this['_atlasPath']---->",this['_atlasPath']);      ...

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

226. Event.CLOSE不触发 [ 84%]

Event.CLOSE不触发 弹出框类型的界面类构造里写了  this.once(Event.CLOSE,this,onClose);    为什么  页面关闭后onClose方法并没有被调用       我用的最新版引擎    2017-08-04 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...

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

227. 分享一个自己做的游戏公告功能,跑马灯效果 [ 84%]

...5,150) this._createHorn() this._createBg() this._createView() this.on(Laya.Event.UNDISPLAY,this,this.stop) this.on(Laya.Event.DISPLAY,this,this.play) } /** 创建滚动区域 */ _createView() { this.hornBox = new Box() let _rectangle = new Laya.Rectangle(0,0,this.defaultX,55) this.hornBox.scrollRect...

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

228. 龙骨skeleton鼠标点击区域的设置 [ 84%]

...gle=new Rectangle(-420,-680,420,680); mArmature.hitArea=rect; mArmature.on(Event.CLICK,this,onClick);    2016-11-22 0 0 分享 微博 QZONE 微信 asdf131 赞同来自: 于一个点为中心播放 :      this.mArmature = this.mFactory.buildArmature(0);         this.mArmatureSpr.addChild(t...

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

229. web和微信端没有问题,打包成apk后 httprequest报Request failed Status:404 text:undefined [ 84%]

...相关的链接 提交 2 个回复 金风 赞同来自: this.xhr.once(Laya.Event.COMPLETE, this, this.CompleteHandler); this.xhr.once(Laya.Event.ERROR, this, this.ErrorHandler); this.xhr.on(Laya.Event.PROGRESS, this, this.ProgressHandler); this.xhr.send(Global.WebHost+this.currentRequest.url, this.c...

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

230. 最新版本 1.7.5 beta fontClip [ 84%]

...                 }             }             event(Event.CHANGE);         } 2017-06-01 0 0 分享 微博 QZONE 微信 a13121527420 - 哇啦哇啦哇啦! 赞同来自: 其实最完美的就是可以布局,然后还可以在前后加描述问题, 例如: 123...

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