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

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

601. loadScene()如何获取到资源异步加载是否完成的事件? [ 71%]

...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

602. 有没有SoundChannel的示例? [ 71%]

...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

603. Animation动画鼠标点击事件不起作用? [ 71%]

...机按钮*/         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

604. MovieClip加载错误抛什么事件? [ 71%]

...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

605. httpRequest send返回Request failed Status:0 [ 71%]

...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

606. TypeError: Failed to execute 'dispatchEvent' on 'EventTarget': parameter 1 is not of type 'Event'. [ 70%]

TypeError: Failed to execute 'dispatchEvent' on 'EventTarget': parameter 1 is not of type 'Event'. 按照官方实例骨骼动画里的多纹理写的代码。 一运行就报这个错误   附件 : --> demo.zip 2018-03-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...

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

607. Animation类如何调用complete事件 [ 70%]

...关的链接 提交 1 个回复 Monica - 知识达人 赞同来自: ani.on(Event.COMPLETE,this,onComplete); 2017-09-27 0 7 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 chenhuanqi23 相关问题 两个对象new了...

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

608. sprite 添加点击事件没反应,对sprite设置了size也没用 [ 70%]

... ; 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

609. 有关Laya3D碰撞检测疑问 [ 70%]

...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

610. tiledmap有时尺寸不正确 [ 70%]

...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