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

大约有 900 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0054 秒)

121. TimeLine调用destroy报错&执行完成后回到起点 [ 76%]

..._proto._loop (HMain.max.js:16892) at loop (HMain.max.js:5472)    private function createTimerLine():void { timeLine.addLabel("turnRight",0).to(target,{x:450, y:100, scaleX:0.5, scaleY:0.5},2000,null,0) .addLabel("turnDown",0).to(target,{x:450, y:300, scaleX:0.2, scaleY:1, alpha:1},2000,null,0) .ad...

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

122. laya.events.EventDispatcher_API3.0 [ 76%]

...则值为 true;否则,值为 false。 off off(type: string, listener: Function): EventDispatcher off(type: string, caller: any, listener?: Function, args?: any[]): EventDispatcher Defined in laya/events/EventDispatcher.ts:112 从 EventDispatcher 对象中删除侦听器。 Parameters type: strin...

来源: Laya3.0_api 发布时间: 20231115

123. 发微信小游戏音乐不播放,报警告 [ 76%]

...   Laya.SoundManager.playSound("res/sounds/bgm.mp3", 1, new Handler(this, function(){                 console.log("播放完成");             })); 2018-08-08 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 ...

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

124. Uncaught TypeError: Cannot read property 'props' of undefined [ 75%]

...导入从unity导出的场景,出现此错误,代码如下 var Main = (function () { function Main() { //初始化引擎 Laya3D.init(0, 0,true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); //添加3D场景 Laya.Scene3D.load("Lay...

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

125. 分享:IDE使用SWF动画的销毁与反复创建 [ 75%]

...       public class LayaUISample {                  public function LayaUISample() {             //初始化引擎             Laya.init(600, 400);             start();         }         private function start():void         {        ...

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

126. ToolTip鼠标悬停的使用 [ 75%]

...悬浮提示框 private var _tip:TipManager;//实例化TipManager public function ToolTipDemo() { Laya.init(Browser.width,Browser.height); Laya.stage.bgColor="#eeffcc"; Laya.loader.load("res/atlas/comp.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { this....

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

127. 官方的示例贴上来,怎么没反映啊 [ 75%]

官方的示例贴上来,怎么没反映啊 var JiHuo = (function (_super) { function JiHuo() { JiHuo.super(this); var xhr = new Laya.HttpRequest(); xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE, this, completeHandler); xhr.once(Event.ERROR, this, errorHandler); xhr.on(...

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

128. ts继承后,代码压缩的问题 [ 75%]

...多重复的一下语句 var __extends = this && this.__extends || function() { var extendStatics = Object.setPrototypeOf || { __proto__: [] }instanceof Array && function(d, b) { d.__proto__ = b } || function(d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p] } ; return fu...

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

129. 播放音效时报错Failed to set the 'buffer' property on 'AudioBufferSourceNode'的问题 [ 75%]

...ffer' property on 'AudioBufferSourceNode'的问题 __proto._tryClearBuffer=function(sourceNode){ // if (!Browser.onMac){ // try{ // sourceNode.buffer=null; // }catch (e){ // WebAudioSoundChannel._tryCleanFailed=true; // } // return; // } try {sourceNode.buffer=WebAudioSound._miniBuffer;}catch (e){We...

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

130. 如何使用类似AS库打包的方式来分包 [ 75%]

...ork { /*[COMPILER OPTIONS:ForcedCompile]*/ public class Framework { public function Framework() { } } }package cn.ztgames.st.Framework { public class CLassA { public function CLassA() { } } }分包文件内容:(function(window,document,Laya){ var __un=Laya.un,__uns=Laya.uns,__static=Laya.static,__...

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