大约有 421 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0049 秒)
Laya_社区(275) Laya2.0_示例(37) Laya_示例(31) Laya2.0_文档(26) Laya2.0_api(18) laya_api(16) Laya3.0_文档(13) Laya3.0_api(5)
...接 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); // this.s...
来源: Laya_社区 发布时间: 20180211
...(已经找到问题) package { import laya.display.Sprite; import laya.events.Event; public class MainUi extends Sprite { private var testPan:Sprite; public function MainUi() { super(); this.graphics.drawRect(0,0,500,500,"#fff0cc"); testPan = new Sprite(); testPan.name = "testPan"; this.addChild...
来源: Laya_社区 发布时间: 20161124
...Stage = Laya.Stage; import Text = Laya.Text; import Event = Laya.Event; import SoundManager = Laya.SoundManager; import Browser = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class Sound...
来源: Laya_社区 发布时间: 20201203
...ia1.loading_desc.text = "可在小秘境挂机获取" dia1.confirm.on(Laya.Event.MOUSE_UP, this, dai1, [dia1]) dia1.popup() // this.big_map.selectedIndex = 0 } } } 两个列表,手动选择会触发,没有问题,但如果在下面加一个修改下拉数据的 this.small_map.labels = “1,2...
来源: Laya_社区 发布时间: 20180719
...ia1.loading_desc.text = "可在小秘境挂机获取" dia1.confirm.on(Laya.Event.MOUSE_UP, this, dai1, [dia1]) dia1.popup() // this.big_map.selectedIndex = 0 } } } 两个列表,手动选择会触发,没有问题,但如果在下面加一个修改下拉数据的 this.small_map.labels = “1,2...
来源: Laya_社区 发布时间: 20180719
...按钮button。 2,在场景中加入了鼠标点击事件 Laya.stage.on(Event.MOUSE_DOWN,this,sceneClick); private function sceneClick():void { trace("scene clicked"); } 3,在button上添加按钮功能 button.on(Event.CLICK,this,onBtn); private function onBtn(e:Event):void { e....
来源: Laya_社区 发布时间: 20180917
...dule laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Sprite_RoateAndScale { private ape: Sprite; private scaleDelta: number = 0; constructor() { // 不支持WebGL时自动切换至Canvas ...
来源: Laya2.0_示例 发布时间: 20240930
...链接 提交 2 个回复 189*****192 赞同来自: Sean8023 Laya.stage.on(Event.MOUSE_UP, this, onApeRelease); Laya.stage.on(Event.MOUSE_DOWN, this, onApeRelease); 通过 Event 类型 监听动作 class Event { /** 一个空的 Event 对象。用于事件派发中转使用。*/ ...
来源: Laya_社区 发布时间: 20170601
...ia1.loading_desc.text = "可在小秘境挂机获取" dia1.confirm.on(Laya.Event.MOUSE_UP, this, dai1, [dia1]) dia1.popup() // this.big_map.selectedIndex = 0 } } } 然后我用 this.small_map.labels = “1,2,3,4”来更改下拉数据,只要一更新数据,上面就自动触发,那个...
来源: Laya_社区 发布时间: 20180719
...03:8888"); // this.socket.connect("10.10.1.103",8888); this.socket.on(Laya.Event.OPEN, this, openHandler); //建立连接 this.socket.on(Laya.Event.MESSAGE, this, receiveHandler); //接收到数据触发函数 this.socket.on(Laya.Event.CLOSE, this, closeHandler); //关闭事件 this.socket.on(Laya.E...
来源: Laya_社区 发布时间: 20180509