大约有 1,240 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0052 秒)
Laya_社区(920) Laya3.0_api(80) Laya2.0_文档(78) Laya_示例(64) Laya2.0_示例(51) Laya3.0_文档(43) laya_api(2) Laya2.0_api(2)
...UI(); console.log(this.RootPanel.my_laya.width); // this.RootPanel.on(Laya.Event.RENDER,this,this.bindEvent); return this.RootPanel; }说明:这是一个框架下用来创建界面的create方法,该 gameLayerUI 是一个分离模式导出的View类,现在的问题是,当new之后,gameLaye...
来源: Laya_社区 发布时间: 20200227
...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
...机按钮*/ private var m_btn_auto:Button; m_mc_trade.on(Event.CLICK,this,onBtnClick); m_btn_auto.on(Event.CLICK,this,onBtnClick); 我有设置了点击事件了,但在点击事件onBtnClick内console.log('s')没有打印出来。而挂机按钮的就可以打印得到。这是怎...
来源: Laya_社区 发布时间: 20170412
...ge { import laya.ani.swf.MovieClip; import laya.display.Stage; import laya.events.Event; import laya.webgl.WebGL; public class MouseCount { public function MouseCount() { Laya.init(720, 1280, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode...
来源: Laya_社区 发布时间: 20170105
...quest(); var url = "http://thirdqq.qlogo.cn/g%3Fb% ... 3B%3B xhr.once(Laya.Event.COMPLETE, this, this.completeHandler, [url, 1]); xhr.once(Laya.Event.ERROR, this, this.errorHandler); xhr.send(url, "", "get", "arraybuffer"); } } GameMain.prototype.completeHandler = function (URL, id, data) { // priva...
来源: Laya_社区 发布时间: 20180629
TypeError: Failed to execute 'dispatchEvent' on 'EventTarget': parameter 1 is not of type 'Event'. 按照官方实例骨骼动画里的多纹理写的代码。 一运行就报这个错误 附件 : --> demo.zip 2018-03-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...
来源: Laya_社区 发布时间: 20180305
...关的链接 提交 1 个回复 Monica - 知识达人 赞同来自: ani.on(Event.COMPLETE,this,onComplete); 2017-09-27 0 7 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 chenhuanqi23 相关问题 两个对象new了...
来源: Laya_社区 发布时间: 20170927
... ; Laya.stage.addChild(this.btn) ; this.btn.size(25,25) ; this.btn.on(Laya.Event.CLICK, this, music.music_voice_toggle); 代码是这样的 , 图片上传不了,代码直接贴上来 2017-08-03 0 0 分享 微博 QZONE 微信 cuixueying 赞同来自: 最好上传个能重现问题的Demo,只看...
来源: Laya_社区 发布时间: 20170803
...F40"; Laya.stage.addChild(this.label); //鼠标事件 Laya.stage.on(Laya.Event.MOUSE_UP, this, function (): void { var str: String = ""; for (var i: number = 0; i < this._outHitAllInfo.length; i++) { str += this._outHitAllInfo.sprite3D.name + " "; } if (this._outHitAllInfo.length == 0) { str = ...
来源: Laya_社区 发布时间: 20180820
...void{ this._mLoadState = ESceneLoadState.eLoadComplete; Laya.stage.on(Laya.Event.RESIZE, this, this.onResizeHandler); this.onResizeHandler(); if (this._mCompleteHandler){ this._mCompleteHandler.run(); } } private onResizeHandler():void{ this._mTiledMap.changeViewPort(this._mViewPortX, this._mViewPor...
来源: Laya_社区 发布时间: 20180529