大约有 1,240 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0114 秒)
Laya_社区(920) Laya3.0_api(80) Laya2.0_文档(78) Laya_示例(64) Laya2.0_示例(51) Laya3.0_文档(43) laya_api(2) Laya2.0_api(2)
...弄一下,== 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
...回调 已经测试过的方式: 以下三种方式都无返回 window.addEventListener('devicemotion', function(event){}) window.addEventListener('deviceorientation', function(event) {}) Laya.Gyroscope.instance.on(Laya.Event.CHANGE, this, this.onDeviceorientation); 连接打开方式都由...
来源: Laya_社区 发布时间: 20191202
..._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
...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
...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
...n); if (sliderButton) { sliderButton.on(Laya.Event.MOUSE_UP, this, () => { console.log("滑块按钮拖拽结束"); }); } HSlider是Panel的子物体,会导致这个事件失效,当HSlider拿出Panel的时...
来源: Laya_社区 发布时间: 20250710
...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
... ```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
... ```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
...tyle: "#123456"}); this.addChild(btn_1); btn_1.mouseEnabled=true; btn_1.on(Event.MOUSE_DOWN, this, onClickBt1); 不管怎么点,在这个点击方法里面是不会执行的 2018-07-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...
来源: Laya_社区 发布时间: 20180709