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

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

81. 用LayaAir引擎解析Tiled Map地图(TypeScript-2D进阶篇(TS)-扩展模块) [ 77%]

...ale(0,0); //将原地图放大3倍 this.tMap.scale = 3; Laya.stage.on(Laya.Event.RESIZE,this,this.resize); Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.mouseDown); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.mouseUp); this.resize(); } /** * 移动地图视口 */ private mouseMove():void{ var mo...

来源: Laya2.0_文档 发布时间: 20210715

82. 小程序开放域相关 [ 77%]

...    trace("pagepage"); //                    Laya.stage.event(Event.MOUSE_DOWN); //                    this.rankView.list["_content"].event(Event.MOUSE_DOWN,null);                 }             } //                         funct...

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

83. Templet资源删除不掉 [ 77%]

...          factory = new Templet();             factory.on(Event.COMPLETE, this, onSkeletonDataParsed); //            factory.on(Event.ERROR, this, onError); //            factory.parseData(texture, data, 60);             factory.loadAni("res/Dragon.sk");  ...

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

84. laya.d3.core.reflectionprobe.ReflectionProbe_API3.0 [ 76%]

... addInputChild callLater clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListener isAncestorOf off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once removeC...

来源: Laya3.0_api 发布时间: 20231102

85. [LayaNative2]pad外设键盘无法捕获到KEY_DOWN,KEY_UP,KEY_PRESS事件 [ 76%]

...请问该如何解决?   以下事件无法触发: Laya.stage.on(Laya.Event.KEY_PRESS, this, this.handleKeypress); Laya.stage.on(Laya.Event.KEY_DOWN, this, this.handleKeydown); Laya.stage.on(Laya.Event.KEY_UP, this, this.handleKeyup);   版本:2.13.3 附件 : --> 事件代码.docx 2024-02-28...

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

86. 求解关于跨域的具体操作 [ 76%]

...tHeader('Content-Type','application/x-www-form-urlencoded'); xhr.once(Laya.Event.COMPLETE, this, this.completeHandler, [url, loader]); xhr.once(Laya.Event.ERROR, this, this.errorHandler); console.log("-----------------send------------------", url); xhr.send(url, "", "get", "arraybuffer"); 2018-07-04...

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

87. 请问如何给所有按钮点击事件增加一个音效 [ 76%]

...on.as中处理下         /**          * 对象的 <code>Event.MOUSE_OVER、Event.MOUSE_OUT、Event.MOUSE_DOWN、Event.MOUSE_UP、Event.CLICK</code> 事件侦听处理函数。          * @param e Event 对象。          */         protected function onMous...

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

88. 鼠标 MOUSE_DOWN Event 回来的信息不符合 [ 76%]

鼠标 MOUSE_DOWN Event 回来的信息不符合 为什么回来的是 “mouseout” 而不是 "mousedown" ? 代码如下: function createSprite() { picture = new Sprite(); picture.loadImage(picturePath); Laya.stage.addChild(picture); var texture = Laya.loader.getRes(picturePath); picturePath.pi...

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

89. canvas下资源清理的问题 [ 76%]

...同来自: package {     import laya.display.Stage;     import laya.events.Event;     import laya.net.Loader;     import laya.ui.Button;     import laya.utils.Handler;     import laya.utils.Stat;          import ui.TaskUI;          import view.TestView;          p...

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

90. HttpRequest 回调方法都没执行 LayaAir 1.7.17 beta JS版本 [ 76%]

...tp = new Laya.HttpRequest(); //new一个HttpRequest类 this.http.once(Laya.Event.PROGRESS,this,this.onProgress); //数据传输中 this.http.once(Laya.Event.COMPLETE,this,this.onComplete); //数据传输完成后,会返回一个data this.http.once(Laya.Event.ERROR,this,this.onError); //数据传...

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