大约有 1,501 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0097 秒)
...议修改源码方式(需改两个类): laya.flash.FlashImage public function set src(value:String):void 75行后加入代码 tl.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, function ceroor(_ev:IOErrorEvent):void { onerror && onerror(); }); laya.ui.Image 167行 protected f...
来源: Laya_社区 发布时间: 20160918
...r Unexpected token in JSON at position 27;at api readFile success callback function SyntaxError: Unexpected token in JSON at position 27 at JSON.parse (<anonymous>) at Function.MiniAdpter.getJson (http://127.0.0.1:9973/game/code.js:20980:15) at Function.MiniLoader.onReadNativ...
来源: Laya_社区 发布时间: 20180205
... btCollisionObject undefined 导微信小程序报错window.focus is not a function 启动引擎报错 mPlugin.game_plugin_init(3); 官网示例摇一摇报错,就解决方案 Laya2.0 WebGl模式,使用 drawToCanvas 报错 ImageData is not defined? 小游戏项目 加载有中文的json文件 ...
来源: Laya_社区 发布时间: 20181128
怎么使用http请求 httpRequest: function (url, data) { var xhr = cc.loader.getXMLHttpRequest(); if (!xhr.onreadystatechange) { xhr.onreadystatechange = function () { if (xhr.readyState == 4 && (xhr.status >= 200 && xhr.status <= 207)) { //cc.log("response:\n" + xhr.respons...
来源: Laya_社区 发布时间: 20180807
...才试了一下,貌似加上<div>就不能计算了,代码如下: (function() { var Stage = Laya.Stage; var HTMLDivElement = Laya.HTMLDivElement; var HTMLIframeElement = Laya.HTMLIframeElement; var Browser = Laya.Browser; var WebGL = Laya.WebGL; (function() { // 不支持WebGL时自动切换...
来源: Laya_社区 发布时间: 20170515
...控 Methods check3DUI check3DUI(mousex: number, mousey: number, callback: Function): boolean Defined in laya/events/MouseManager.ts:311 处理3d界面。 Parameters mousex: number mousey: number callback: Function Returns boolean handleCapture handleCapture(mousex: number, mousey: number, callback: ...
来源: Laya3.0_api 发布时间: 20231102
...hirdScriptError laya is not defined ReferenceError: laya is not defined at Function.EventDispatcher.__init$ (http://127.0.0.1:49737/game/code.js:613:26) at http://127.0.0.1:49737/game/code.js:15:71 at Array.forEach (<anonymous>) at Object.__init (http://127.0.0.1:49737/game/code.js:15:36) at h...
来源: Laya_社区 发布时间: 20180510
... 微信小游戏编译报错 导微信小程序报错window.focus is not a function 播放背景音乐的问题 刚打开 桌面调试出现报错Uncaught (in promise) DOMException: play() 启动引擎报错 mPlugin.game_plugin_init(3); IDE通过.ui自动生成的ui代码报错 请问 《学习开...
来源: Laya_社区 发布时间: 20180819
...开发基础(快速上手)以后按照示例写代码 var LayaSample=(function() { function LayaSample1() { Laya3D.init(600,400); } return LayaSample1; }()); 警告Warning!,this class[MiniAdpter] already exist: Object {init: } 运行后什么都没有白白的一片 var LayaSample=(fu...
来源: Laya_社区 发布时间: 20180521
...设定了大飞机的血量,可是打一下就死了。 var Game = (function(){ (function Game(){ // 子弹发射偏移位置表 this.bulletPos = [[0],[-15,15],[-30,0,30],[-45,-15,15,45]]; // 关卡等级 this.level = 0; // 升级等级所需要的成绩数量 this.levelUpScore = 0; // 积分...
来源: Laya_社区 发布时间: 20170525