大约有 4,338 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0080 秒)
Laya_社区(2450) Laya3.0_api(673) Laya2.0_api(357) laya_api(289) Laya2.0_文档(271) Laya_示例(157) Laya2.0_示例(116) Laya3.0_文档(25)
...perty 'offCanplay' of null at n.onCanPlay (https://usr/game.js:39:9226) at Function.t (https://lib/WAGameSubContext.js:2:153278)Cannot read property 'offCanplay' of null;at audioContext.oncanplay callback function TypeError: Cannot read property 'offCanplay' of null at n.onCanPlay (https://usr/game....
来源: Laya_社区 发布时间: 20200612
...Scene_01/loveScene.ls",Handler.create(this,this.completeHandler)); private function completeHandler():void{ var scene:Scene = Laya.loader.getRes("LayaScene_01/loveScene.ls"); Laya.stage.addChild(scene); } 我现在的问题是,我创建一个继承Scene的类,在这个类里边我...
来源: Laya_社区 发布时间: 20170825
...CharCode(Pako.inflate(new Uint8Array(res.data)))); } }); //处理中文 function decodeUTF8(arr,toType) { //转为utf8编码字符串 let str = ''; for (var i = 0; i < arr.length; i++) { str += String.fromCharCode(arr[i]); ...
来源: Laya_社区 发布时间: 20191211
...t = 200; private const Y_OFFSET:int = 200; private var skins:Array; public function UI_RadioGroup() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya...
来源: Laya2.0_示例 发布时间: 20241126
...我代码写错了吗? var soundControl = true; // 背景乐开关 function onPlayBgMusic(url, loop, rate) { Laya.SoundManager.playbackRate = rate; if(soundControl){ Laya.SoundManager.playMusic(url, loop, Laya.Handler.create(this, onCompleteBgMusic, [loop, url])); ...
来源: Laya_社区 发布时间: 20170414
...(obj); var hr = new Laya.HttpRequest(); hr.once(Laya.Event.PROGRESS, this, function (e) { console.log(e); }); hr.once(Laya.Event.COMPLETE, this, function () { console.log(hr.data); }); hr.once(Laya.Event.ERROR, this, function (e) { console.log(e); }); hr.send('http://stone.tt.be-xx.com/git/test.php'...
来源: Laya_社区 发布时间: 20170628
...建 Parameters url: string Returns boolean off off(type: string, listener: Function): EventDispatcher off(type: string, caller: any, listener?: Function, args?: any[]): EventDispatcher Inherited from EventDispatcher.off Defined in laya/events/EventDispatcher.ts:112 从 EventDispatcher 对象中删...
来源: Laya3.0_api 发布时间: 20231115
...ea,可以设置多边形点击区域 shiyang • 2018-03-14 15:50 public function LateTest() { Laya.init(400,400,WebGL); Laya.stage.bgColor = "#ff0000"; // trace(Laya.timer.toString()); // Laya.timer.callLater(this,onLater); // trace(Laya.timer.toString()); var assets:Array = []; assets....
来源: Laya_社区 发布时间: 20180314
...sform.setTranslate(500,500); this.sceneP.once(Event.HIERARCHY_LOADED, this,function():void{ console.error("改变大小"); this.sceneP.transform.localScale = new Vector3(3, 3, 3); this.sceneP.transform.localPosition = new Vector3(100, 100, 100); }); 2018-03-27 添加评论 免费帖 --> 分享 微...
来源: Laya_社区 发布时间: 20180327
... 小明同学 有空看看我那个错误 wx.getFileSystemManager is not a function;at requestAnimationFrame callback function TypeError: wx.getFileSystemManager is not a function
来源: Laya_社区 发布时间: 20180725