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

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

741. laya.display.Input [ 57%]

... All Classes | Index | Frames No Frames InputProperties | Methods | Events | Constants Packagelaya.displayClasspublic class InputInheritanceInput Text Sprite Node EventDispatcher Object Input 类用于创建显示对象以显示和输入文本。 Input 类封装了原生的文本输入框...

来源: laya_api 发布时间: 20170929

742. layaide建的ui里面的按钮怎么获取到呢?事件怎么添加呢? [ 57%]

...d(ListDemoView); var btn = ListDemoView.getChildByName("startbtn"); btn.on(Event.CLICK, this, clickHandler); 这样不行 2018-05-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 181*****859 赞同来自: 已解...

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

743. laya引擎里是否有生命周期? [ 57%]

...818760256 • 2017-10-20 18:42 是自带的removed事件吗?this.on(Laya.Event.REMOVED,this,onRelease); 这样写对吗js里的。。

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

744. 动画播放完回调函数内,物体的坐标轴错乱 [ 57%]

...函数内,物体的坐标轴错乱 我在动画播放完的函数_ani.on(Event.STOPPED,this,ruturnRoad)的ruturnRoad方法内移动一个已经创建好的物体,发现这个物体的坐标轴错乱,原来X轴变为Z轴,原来Z轴变为X轴,物体坐标原来的坐标也改变了 2017-12-2...

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

745. .ani文件能预加载吗? [ 57%]

...ani.loadAnimation("ani/TX001.ani"); //动画播放完的事件 ani.on(Laya.Event.COMPLETE,this,(ani:Animation)=>{ ani.removeSelf(); ani.destroy(); },[ani]); ani.play(0,false); 2018-06-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...

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

746. Tween动画中的Sprite点击事件失效 [ 57%]

...事件失效: 简单代码: var self = this; self.loserPrize.on(Laya.Event.MOUSE_DOWN,self,function(){     self.clickHanlder(); }) Laya.Tween.to(self.loserPrize, {      y: Laya.Browser.clientHeight }, Math.random() * 1500); self.gameZone.addChild(self.loserPrize);   大概如上 随手写...

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

747. EventDispatcher接收不到参数 [ 57%]

EventDispatcher接收不到参数 var Dispatcher = (function(_super){ function Dispatcher(){ Dispatcher.super(this); }; //注册类 Laya.class(Dispatcher,"Dispatcher",_super); //实例EventDispatcher类 Dispatcher.eventDispatcher = new Laya.EventDispatcher(); //发送事件 Dispatcher.Emit = functi...

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

748. [LayaAir2] 在使用videoDom创建视频元素后iPad跟iPhone中位置不一样 [ 57%]

...ss VideoDom { htmlvideo:Laya.HtmlVideo; constructor() { Laya.stage.on(Laya.Event.CLICK,this,this.onClick); } onClick(){ this.initVideo(); } initVideo() { this.htmlvideo = new Laya.HtmlVideo(); this.htmlvideo.setSource("https://www.layaair.com/3.x/de ... ot%3B,1); this.htmlvideo.video.addEventListene...

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

749. laya如何用audio播放音频? [ 57%]

...TMLAudioElement; constructor(){     super();     this.btn_play.on(Laya.Event.CLICK, this, this.onPlay);     this.elentAutio = <HTMLAudioElement>document.createElement('audio');     this.elentAutio.src="res/10.mp3"; } onPlay():void{     this.elentAutio.play(); }   由于要播放一...

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

750. 新手问一个动画的问题 [ 56%]

...;             addChild(views);             views.ani1.on(Event.COMPLETE,this,playStop);             views.ani1.play(); 接着在时间中停止,然后画面就空了,难道不是停到动画的最后一帧吗? views.ani1.stop();             var bt:Sprite  =...

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