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

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

61. 项目做了一周.然后打不开了.怎么办? [ 88%]

...ayaAirIDE_1.7.15\resources\app\out\vs\layaEditor\h5\codemain.js:390:36) at EventEmitter.restartServer.getPort (E:\laya\ide\LayaAirIDE_1.7.15\resources\app\out\vs\layaEditor\h5\codemain.js:372:18) at Server.<anonymous> (E:\laya\ide\LayaAirIDE_1.7.15\resources\app\out\vs\layaEditor\h5\codemain.j...

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

62. 监听按键事件怎么写呀,TS的 [ 87%]

...相关的链接 提交 2 个回复 sfg007 赞同来自: onkeydown(e: Laya.Event): void{           console.log(e.keyCode);             if(e.keyCode==37){//左            this.hero.pos(this.hero.x-100,this.hero.y);                   }else if(e.keyCode==39){/...

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

63. 发布微信后无法触发mouse_up事件 [ 87%]

...** 初始化资源加载完成 */ private initF():void{ Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.mouseHandler); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.mouseHandler); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.mouseHandler); } private mouseHandler(e:laya.events.Event):void { var to...

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

64. 分享:避免鼠标快速移动,mouseout和mouseover触发顺序不一致的问题! [ 87%]

...序不一致的问题! package { import laya.display.Sprite; import laya.events.Event; import laya.utils.Mouse; /* 2或多个显示对象 鼠标移到显示对象上,呈现手型光标,移出呈现箭头,当鼠标快速在2个显示对象之间切换,会出现鼠标位于显示对象之上...

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

65. 为什么hitTestPoint始终是false[ 87%]

.../bg.png"); this.s.addChild(img); this.addChild(this.s); Laya.stage.on(Laya.Event.CLICK, this, this.hitPoint); } private hitPoint(e:Laya.Event): void { console.log(this.s.hitTestPoint(e.stageX, e.stageY)); } } 很简单的代码,不知道什么hitTestPoint始终得到的是false.我打印出s的宽...

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

66. 如何阻止Event.MOUSE_DOWN的事件冒泡? [ 87%]

如何阻止Event.MOUSE_DOWN的事件冒泡? btn.on(Event.MOUSE_DOWN, this, function(e) {     console.log("被点击");     e.stopPropagation(); });   我这样并不能阻止到Laya.stage绑定的事件 2017-03-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...

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

67. 循环监听按钮,如何进行传参和接受参数 [ 86%]

...' + i) as Laya.Image;               console.log(e); e.on(Laya.Event.CLICK, this, this.onBtnClick); }   按钮事件 private onBtnClick(event:Laya.Event): void {         let b = event.currentTarget as Laya.Image; console.log('onClickLevel > ' + b.skin); this.removeSelf(); Lay...

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

68. js中使用sharedMesh报错 [ 86%]

...file:///E:/LayaWorkspace/javaScriptLaya/bin/libs/laya.core.js:12657:28) at EventHandler.__proto.runWith (file:///E:/LayaWorkspace/javaScriptLaya/bin/libs/laya.core.js:709:27) at ResInfo.__proto.event (file:///E:/LayaWorkspace/javaScriptLaya/bin/libs/laya.core.js:479:28) at LoaderManager.__proto._end...

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

69. TiledMap加载失败的问题 [ 86%]

...e:///E:/EarlyChildhood/EARLY_GAME_001/bin/libs/laya.tiledmap.js:165:20) at EventHandler.__proto.runWith (file:///E:/EarlyChildhood/EARLY_GAME_001/bin/libs/laya.core.js:670:60) at Loader.__proto.event (file:///E:/EarlyChildhood/EARLY_GAME_001/bin/libs/laya.core.js:450:29) at Loader.__proto.endLoad (f...

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

70. 精灵添加名称 [ 86%]

...  sp = project.drawsomething(20, 20+60*i, "#eeb9b3");         sp.on(Event.CLICK,this, onsp);         Laya.stage.addChild(sp);   }   private function onsp(e:Event){              console.log("监听到按钮"+e.target);              console.log((e.target.getChildAt(0) as ...

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