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

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

831. 怎样获取父类? [ 70%]

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

832. input输入框修改切换type类型后,内容无法正确显示; [ 70%]

... 提交 1 个回复 Laya_XS 赞同来自: 不建议你这样修改,this.event(Laya.Event.CHANGE);这个是多余的,你的代码生效无非是text重新赋值内容触发了再一次排版。你可以直接在设置了文本type后,直接修改下文本的内容就可以了。 2021-07-29 0 0 ...

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

833. video.on('complete', this, onPlayEnd);视频播完为何不触发“complete”? [ 70%]

...ayEnd);视频播完为何不触发“complete”? function onPlayEnd(evt:Event){ trace("video complete"); } 为何视频播完不触发呢? http://layaair.ldc.layabox.com ... Video 这里要是可以调试该多好~ 2017-01-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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

834. localToGlobal获取坐标总是错误! [ 70%]

...ByName("boxSpaw"); //this.spriteSpaw.loadImage("../..") buttonTest.on(Laya.Event.CLICK,this,()=>{ let point = new Laya.Point(this.sprteCenter.x,this.sprteCenter.y); let pointGlobal = this.sprteCenter.localToGlobal(point); Laya.stage.addChild(this.boxSpaw); this.boxSpaw.x = pointGlobal.x; this.box...

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

835. 如何在按钮监听中获取按钮本身 [ 70%]

...有的AnimationClip呢? 怎样获取浏览器地址传过来的GET参数 Event.MOUSE_WHEEL 如何获取鼠标滚轮是放大开始缩小 分享:LayaAir下如何获取图集下的小图资源? 怎么获取对象的坐标 List滑动条会引起单元格上的按钮点击后多次触发点击事...

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

836. laya.ui.UIGroup [ 70%]

...All Classes | Index | Frames No Frames UIGroupProperties | Methods | Events Packagelaya.uiClasspublic class UIGroupInheritanceUIGroup Box Component Sprite Node EventDispatcher ObjectImplements IItemSubclasses RadioGroup, Tab Group 是一个可以自动布局的项集合控件。 Group 的默...

来源: laya_api 发布时间: 20170929

837. 发现TimeLine的一些问题,像是BUG [ 70%]

...cuixueying 赞同来自: package { import laya.display.Sprite; import laya.events.Event; import laya.net.Loader; import laya.utils.Ease; import laya.utils.Handler; import laya.utils.Stat; import laya.utils.TimeLine; public class AirDemo { private var sp1:Sprite; private var sp2:Sprite; private var s...

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

838. DialogUI,在内部按钮监听事件没效果是引擎设定?还是我用法错误? [ 70%]

...个按钮,confirm, cancel, 在InputTxtDialog 类里面cancel_btn.on(Event.CLICK, this, this.onCancel));没有反映,但是在调用InputTxtDialog的地方InputTxtDialog.cancel_btn.on(Event.CLICK, this, this.onCancel));是没有问题的,同样的代码,粘出来就行,在里面就不...

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

839. 有没有SoundChannel的示例? [ 70%]

...undChannel = new SoundChannel(); SoundManager.addChannel(channel); _btn.on(Event.CLICK, this, soundClick); function soundClick(evt:Event){ alert("channel.isStoped:"+channel.isStoped); if (channel.isStoped){ channel.play(); }else{ channel.stop(); } } channel.isStoped输出是:undefined 2017-01-16 ...

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

840. Animation动画鼠标点击事件不起作用? [ 70%]

...机按钮*/         private var m_btn_auto:Button;   m_mc_trade.on(Event.CLICK,this,onBtnClick); m_btn_auto.on(Event.CLICK,this,onBtnClick); 我有设置了点击事件了,但在点击事件onBtnClick内console.log('s')没有打印出来。而挂机按钮的就可以打印得到。这是怎...

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