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

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

541. tree异步选中问题 [ 72%]

...弄一下,== Chuan • 2018-03-24 14:57 已解决: if (e.type == Laya.Event.CLICK) { if (e.target.name == "arrow") { //Tree的开/关,当打开一个时,另一个关闭 var item:Cell = e.target.parent as Cell; if (item.dataSource.isOpen == true) { if (this.selectedIndex == -1) { th...

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

542. IOS微信内置浏览器陀螺仪问题 Laya2.4.0bate [ 72%]

...回调 已经测试过的方式: 以下三种方式都无返回 window.addEventListener('devicemotion', function(event){}) window.addEventListener('deviceorientation', function(event)  {}) Laya.Gyroscope.instance.on(Laya.Event.CHANGE, thisthis.onDeviceorientation);  连接打开方式都由...

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

543. 怎么打开第二个工程 [ 72%]

..._Aaron 赞同来自: package { import laya.device.media.Video; import laya.events.Event; import laya.utils.Browser; public class Main { public function Main() { Laya.init(500,500); Laya.stage.once(Event.CLICK,this,this.clickHandler); } private function clickHandler():void { var iframe:Object = Brows...

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

544. LAYAAIR加载SWF无线循环 [ 72%]

...cheight:"+mc.height);                      //  mc.on(Event.LOADED,this,onComp);         //  mc.on(Event.COMPLETE,this,onEnd);         //  mc.x = (Laya.stage.width ) / 2;         //  mc.y = (Laya.stage.height) / 2;             Laya.stage...

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

545. socket无法连接服务器 [ 72%]

...d;         private initSocket(): void {             this.on(Laya.Event.OPEN, this, this.onConected);             this.on(Laya.Event.ERROR, this, this.onError);         }         public conectToServer(): void { //“连接”按钮的回调             if (this.connected...

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

546. [LayaAirIDE3]Panel会使HSlider的拖拽结束检测事件失效 [ 72%]

...n);         if (sliderButton) {             sliderButton.on(Laya.Event.MOUSE_UP, this, () => {                  console.log("滑块按钮拖拽结束");             });         } HSlider是Panel的子物体,会导致这个事件失效,当HSlider拿出Panel的时...

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

547. 绘制图形的BUG [ 72%]

...ight; } } } BUG2:package ui.test { import laya.display.Sprite; import laya.events.Event; public class MyBox1 extends Sprite { private var _sprite:Sprite; public function MyBox1() { super(); _sprite=new Sprite(); //这里明明传入了尺寸,为什么graphics没有宽高信息 _sprite.graphics.dra...

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

548. 如何对3D精灵进行鼠标检测(JavaScript-3D基础(JS)-LayaAir3D之鼠标交互) [ 72%]

... ```typescript { //在舞台上添加鼠标事件监听 Laya.stage.on(Laya.Event.MOUSE_DOWN,this, this.onMouseDown); } //点击触发事件 onMouseDown() { //记录点击到舞台上的点 this.point.x = Laya.MouseManager.instance.mouseX; this.point.y = Laya.MouseManager.instance.mouseY; //产生射...

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

549. 如何对3D精灵进行鼠标检测(TypeScript-3D基础(TS)-LayaAir3D之鼠标交互) [ 72%]

... ```typescript { //在舞台上添加鼠标事件监听 Laya.stage.on(Laya.Event.MOUSE_DOWN,this, this.onMouseDown); } //点击触发事件 onMouseDown() { //记录点击到舞台上的点 this.point.x = Laya.MouseManager.instance.mouseX; this.point.y = Laya.MouseManager.instance.mouseY; //产生射...

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

550. 自己画的view不支持鼠标点击吗? [ 72%]

...tyle: "#123456"}); this.addChild(btn_1); btn_1.mouseEnabled=true; btn_1.on(Event.MOUSE_DOWN, this, onClickBt1);     不管怎么点,在这个点击方法里面是不会执行的  2018-07-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

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