大约有 2,539 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0074 秒)
Laya_社区(1916) Laya3.0_api(163) laya_api(112) Laya2.0_api(107) Laya2.0_文档(76) Laya_示例(68) Laya2.0_示例(51) Laya3.0_文档(46)
...stPrior = true; Laya.stage.focus = _mapSprite; let event = _mapSprite.on(Laya.Event.CLICK, this, () => { LogUtil.w("响应点击事件") }) } 尝试使用focus 好像也没有响应 请问大佬们能解答一下吗 附件 : --> 2022-...
来源: Laya_社区 发布时间: 20220929
...个按钮,confirm, cancel, 在InputTxtDialog 类里面cancel_btn.on(Event.CLICK, this, this.onCancel));没有反映,但是在调用InputTxtDialog的地方InputTxtDialog.cancel_btn.on(Event.CLICK, this, this.onCancel));是没有问题的,同样的代码,粘出来就行,在里面就不...
来源: Laya_社区 发布时间: 20180907
...undChannel = new SoundChannel(); SoundManager.addChannel(channel); _btn.on(Event.CLICK, this, soundClick); function soundClick(evt:Event){ alert("channel.isStoped:"+channel.isStoped); if (channel.isStoped){ channel.play(); }else{ channel.stop(); } } channel.isStoped输出是:undefined 2017-01-16 ...
来源: Laya_社区 发布时间: 20170116
...ayEnd);视频播完为何不触发“complete”? function onPlayEnd(evt:Event){ trace("video complete"); } 为何视频播完不触发呢? http://layaair.ldc.layabox.com ... Video 这里要是可以调试该多好~ 2017-01-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...
来源: Laya_社区 发布时间: 20170116
...tion; } } /** * 监听鼠标事件 */ onAwake(): void { Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.mouseDown); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.mouseUp); this.camera = (<Laya.Camera>this.owner); } /** * 监听键盘事件 */ onUpdate(): void { var elapsedTime: number = Laya.t...
来源: Laya3.0_文档 发布时间: 20251010
...行的 求大神帮忙 let xhr = new Laya.HttpRequest(); xhr.once(Laya.Event.COMPLETE, this, this.completeHandler); xhr.once(Laya.Event.ERROR, this, this.errorHandler); xhr.send("https://ask.layabox.com/static ... ot%3B, "", "get", "arraybuffer"); private completeHandler(data: ArrayBuffer) { //...
来源: Laya_社区 发布时间: 20181010
...All Classes | Index | Frames No Frames TerrainProperties | Methods | Events Packagelaya.d3.terrainClasspublic class TerrainInheritanceTerrain Sprite3D Node EventDispatcher Object Terrain 类用于创建地块。 Public Properties Hide Inherited Public Properties Show Inherited Public Properti...
来源: Laya2.0_api 发布时间: 20190513
... constructor() { super(); Laya.stage.on(Laya.Event.KEY_UP, this, this.onKeyUp); } onKeyUp(e: Laya.Event) { if (e.keyCode == 65) {//A console.log("释放资源false") Laya.loader.clearRes("res/atlas/co...
来源: Laya_社区 发布时间: 20170317
...容相关的链接 提交 1 个回复 cuixueying 赞同来自: 找到laya.events.MouseManager类文件,将该类下的以下代码注释重新编译即可 //canvas.oncontextmenu = function(e:*):* { // if (enabled) return false; // } //e.preventDefault(); 有6句,需要全部注释...
来源: Laya_社区 发布时间: 20170112
... 另外显然的AS3事件机制全体阵亡喽?比如全部使用laya.event里面的事件机制是吗? 另外一些AS3非常常用的第三方库TweenMax之类的,显然也是无法用的喽?想要用的话,就得把库里面用到的原生类替换成LayaAir重新的实现的才行...
来源: Laya_社区 发布时间: 20170510