大约有 1,740 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0060 秒)
...议修改源码方式(需改两个类): 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
...emo一模一样。。。 // 这段代码需要在setupDemo之前执行。 (function() { // 项渲染器 var Box = Laya.Box; var Image = Laya.Image; var WID = 373, HEI = 85; function Item() { Item.__super.call(this); this.size(WID, HEI); this.img = new Image(); this.addChild(this.img); t...
来源: Laya_社区 发布时间: 20180731
...附件:(unknown) gameThirdScriptError xml.getElementsByTagName is not a function TypeError: xml.getElementsByTagName is not a function at BitmapFont.__proto.parseFont (http://127.0.0.1:53804/game/code.js:803:17) at Loader.__proto.onLoaded (http://127.0.0.1:53804/game/code.js:12700:11) ...
来源: Laya_社区 发布时间: 20180307
...则值为 true;否则,值为 false。 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
...ptError Sprite3D: The .lh file root type must be Sprite3D,please use other function to load this file.;at api readFile success callback function Error: Sprite3D: The .lh file root type must be Sprite3D,please use other function to load this file. at Sprite3D.__proto.onAsynLoaded (http:...
来源: Laya_社区 发布时间: 20180228
...efined in laya/d3/component/HLOD/HLODUtil.ts:84 Methods load load(callFun: Function, hlod: any): void Defined in laya/d3/component/HLOD/HLODUtil.ts:94 loaded Parameters callFun: Function hlod: any Returns void release release(): void Defined in laya/d3/component/HLOD/HLODUtil.ts:108 释放HLODGourp...
来源: Laya3.0_api 发布时间: 20231115
laya2.0 localStorage语法错误 Storage.getItem=function(key){ return Storage.support ? Storage.items.getItem(key):null; } Storage.getJSON=function(key){ return JSON.parse(Storage.support ? Storage.items.getItem(key):null); }?:不是js的写法吧... 2018-11-22 添加评论 免费帖 --> 分享 ...
来源: Laya_社区 发布时间: 20181122
...改 //加载数据完毕后触发这个方法 GameMain.prototype.onLoad = function () { this.mainUI = new MainUI(); dataSource = ; this.allData = ["深发展A", "南坡A", "铜陵有色", "丰林集团", "泰瑞科技", "贵绳股份", "华谊兄弟", "光洋股份", "南京港", "华铁科技", "...
来源: Laya_社区 发布时间: 20170207
...指针要变成可点击的指针“小手的样子”,求大神解析 function parseComplete() { mArmature = mFactory.buildArmature(1); mArmature.x = mStartX; mArmature.y = mStartY; //mArmature.scale(0.5, 0.5); Laya.stage.addChild(mArmature); //mArmature.on(Event.LABEL, this, onEvent); mArmature....
来源: Laya_社区 发布时间: 20170818
...rivate var url_img:String = "res/"; public function WWJ_Main() { Laya.init(stageWidth, stageHeight); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage....
来源: Laya_社区 发布时间: 20170822