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

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

381. 怎样获取父类? [ 78%]

...uper){ function TipsView(params) { TipsView.super(this); this.sure.on(Laya.Event.MOUSE_UP,this,onSure); function onSure(params) { } } Laya.class(TipsView,"TipsView",TipsViewUI); return TipsView; })();   2017-10-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...

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

382. replaceSlotSkinName对于spine换肤不成功 [ 78%]

...0,Laya.WebGL); this.m_templet = new Laya.Templet(); this.m_templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.m_templet.on(Laya.Event.ERROR,this,this.onError); this.m_templet.loadAni("res/spine/goblins/goblins.sk"); } private onError():void { console.log("parse error"); } private parseC...

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

383. 1.7的接口消失 [ 78%]

1.7的接口消失 // ZmyTestManager.Ani.on(Laya.Event.COMPLETE, this, this.OnCurrentAnimationCompleted);//循环动画完成播放单次循环 // ZmyTestManager.Ani.on(Laya.Event.STOPPED, this, this.OnCurrentAnimationStopped);//非循环动画停止播放 这个接口在2.0后就没有了 文档...

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

384. 列表嵌套另外一个列表 [ 78%]

...seHandler = new Handler(this,onMouse);//当list被点击时触发 并发送event,index } public function onRender(cell:Box,index:int):void { //当list刷新时接收并更改单元格属性 var hero:Image = cell.getChildByName("hero")as Image;//根据名字查找要更改的单元格 hero....

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

385. 限制区域拖动效果,为什么会无法限制呢? [ 78%]

...。 /* * name; */  var Sprite = Laya.Sprite; var Stage = Laya.Stage; var Event = Laya.Event; var Rectangle = Laya.Rectangle; var Texture = Laya.Texture; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var Handler = Laya.Handler  function GolfMainUI() { GolfMainUI.su...

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

386. 对象监听另外一个脚本的执行方法不被执行 [ 78%]

...钮的监听 //下拉菜单信息按钮监听 this.AllTitleButton.on(Laya.Event.MOUSE_DOWN, this, ButtonClickManager.clickinstance.AllTitleButtonClick);   而在另外的一个单例脚本中单例分离了执行方法 因为按钮监听太多 需要分离 监听和执行 /** * 基础信息按钮...

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

387. 两个问题都关于LayaAir的ios真机 [ 78%]

...有个变暗的效果 statenum是1的按钮, /** * 对象的 <code>Event.MOUSE_OVER、Event.MOUSE_OUT、Event.MOUSE_DOWN、Event.MOUSE_UP、Event.CLICK</code> 事件侦听处理函数。 * @param e Event 对象。 */ protected function onMouse(e:Event):void { if (toggle === false &...

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

388. 代码怎么判断ui加载完成 [ 78%]

...后怎么判断它有没有完成加载并显示到舞台上呢 mainMC.on(Event.LOADED,this,stopMC); mainMC.on(Event.COMPLETE,this,stopMC);这俩货监听都不好用   附件 : --> 2016-12-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

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

389. 如何获取实时更新的动态数据,数据在文本中 [ 78%]

....create(this,this.Onloaded),null,Laya.Loader.TEXT,0,true,null,true);*/ let event1=Laya.loader.load("eyeimf.txt", Laya.Handler.create(this, this.Onloaded), null, Laya.Loader.TEXT,0,true,null,true); //console.log(Laya.Loader.loadedMap); } 另外就是加载的时候,不缓存资源,就不能读取...

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

390. DOM元素-视频 [ 78%]

...a设置Video的位置,对齐的位置和refence重合 Laya.stage.on(Laya.Event.RESIZE, this, Laya.Utils.fitDOMElementInArea, [videoElement, reference, 0, 0, reference.width, reference.height]);class DOM_Video { constructor() { Laya.init(800, 600); Laya.stage.bgColor = "#FFFFFF"; Laya.stage.alignH ...

来源: Laya_示例 发布时间: 20241002