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

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

121. LayaFlash如何使用chrome调试问题? [ 76%]

...n.as的代码如下: package { import flash.display.Sprite; import flash.events.Event; public class Main extends Sprite { public function Main() { if (stage) init(); else addEventListener(Event.ADDED_TO_STAGE, init); } private function init(event:Event = null):void { removeEventListener(Event.ADDE...

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

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

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

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

...如下:   以下是代码: 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. socket.sent [ 76%]

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

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

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

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

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

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

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

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

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

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

129. 引擎示例中的错误 [ 75%]

...layabox. ... DForm 1、constructor里的最后一行: Laya.stage.on(Laya.Event.RESIZE, this, this.fitDOMElements, [emailInput, birthdayInput, passwordInput]); 当stage调整尺寸时,对3个input位置进行调整,当初次运行时,3个input框排在网页左上角,必须手动改变一...

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

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