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

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

121. Dialog中编辑的动画如何控制? [ 76%]

...链接 提交 1 个回复 cuixueying 赞同来自: function TestUI() { var Event = laya.events.Event; TestUI.super(this); this.ani1.play(15);//play的第一个参数是从第几帧开始播放 Laya.stage.on(Laya.Event.CLICK,this,onClick); } Laya.class(TestUI, "TestUI", TestPageUI); function onClick(...

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

122. localToGlobal获取坐标总是错误! [ 76%]

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

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

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

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

124. spine动画,微信模拟器正常,真机动画图片颠倒!!!引擎大bug!!! [ 75%]

...如下:   以下是代码: protected onEnter(){ this.img_sample.on(Laya.Event.CLICK, this, this.onImgClick); Laya.loader.load("res/atlas/comp/skeleton.atlas"); //创建动画模板 this.templet = new Laya.Templet(); this.templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.templet.on(L...

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

125. HttpRequest有一定几率触发error事件 Status:0 [ 75%]

... 图片添加点击事件 有的不生效 HttpRequest感觉没有发成功 event自定义事件的问题 微信小游戏与加载图片时不会触发erroe事件 问题状态 最新活动: 2018-05-15 15:52 浏览: 729 关注: 4 人

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

126. socket.sent [ 75%]

...接 this.socket.connectByUrl("ws://localhost:8899"); this.socket.on(Laya.Event.OPEN, this, this.openHandler); this.socket.on(Laya.Event.MESSAGE, this, this.receiveHandler); this.socket.on(Laya.Event.CLOSE, this, this.closeHandler); this.socket.on(Laya.Event.ERROR, this, this.errorHandler); } private...

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

127. LayaAir 移动端启动鼠标右键菜单栏功能 [ 75%]

...容相关的链接 提交 1 个回复 cuixueying 赞同来自: 找到laya.events.MouseManager类文件,将该类下的以下代码注释重新编译即可 //canvas.oncontextmenu = function(e:*):*  {       // if (enabled) return false; //  }  //e.preventDefault(); 有6句,需要全部注释...

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

128. 超过最大调用堆栈大小 [ 75%]

...:8383");         output = socket.output;         socket.on(Event.OPEN, this, this.onSocketOpen);         socket.on(Event.CLOSE, this, this.onSocketClose);         socket.on(Event.MESSAGE, this, this.onMessageReveived);         socket.on(Event.ERROR, this, this...

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

129. 关于代码打印调试的一些问题 [ 75%]

... LayaAir2D示例 Mac 2.0.0beta3 Chrome调试黑屏 graphics alpha 问题 event自定义事件的问题 路径是对的,但老是,调试控制台提示:错误,图片是IDE自带的,也不显示 这样写的代码,Tween动画里面只有alpha有效果,scalex和scaley没有变化,怎么...

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

130. ts项目发布的时候报错 [ 75%]

...时,构建的时候报错。 点击发布,构建,然后出现报错 events.js:160 throw er; // Unhandled 'error' event ^ Error: spawn tsc ENOENT at exports._errnoException (util.js:1022:11) at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32) at onErrorNT (internal/child_p...

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