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

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

211. List的selectHandler 点击同一个item只能触发一次回调 [ 85%]

...Index !=value){ this._selectedIndex=value; this.changeSelectStatus(); this.event(/*laya.events.Event.CHANGE*/"change"); this.selectHandler && this.selectHandler.runWith(value); this.startIndex=this._startIndex; //} });

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

212. 分享:Skeleton下Event.LABLE('label')事件的使用 [ 85%]

分享:Skeleton下Event.LABLE('label')事件的使用         LayaAir下支持龙骨的自定义事件,即动画制作中为关键帧添加的帧事件,这里不再累述,下面看个例子。 Label事件如何设置?         打开Dragonbones(或spine),选择龙骨动画...

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

213. 按钮失效,同UI里的一个图片超链接点击后再返回,出现按钮失效。 [ 85%]

...Right.bottom+100; }  //事件注册 //开始游戏 this.StartLeft.on(Laya.Event.CLICK,null,function(){ //TO GamePage2 console.log("left onclick"); Laya.stage.addChild(new GameView); });  //分享快乐 this.StartRight.on(Laya.Event.CLICK,null,function(){ //超链接 onLink(href); });  //天猫Log...

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

214. 图片添加点击事件 有的不生效 [ 85%]

... private init():void { //添加点击事件处理 this.v_btn_boy.on(Laya.Event.CLICK, this, this.onClickBtnBoy); this.v_btn_friend.on(Laya.Event.CLICK, this, this.onClickBtnFriend); this.v_btn_shop.on(Laya.Event.CLICK, this, this.onClickBtnShop); console.log("init main scene"); } //点击羁绊 priv...

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

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

216. 分享:改变图片皮肤,保持图片原样宽高显示 [ 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

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

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

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

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

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

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

219. 分享一个自己做的游戏公告功能,跑马灯效果 [ 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

220. 龙骨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