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

大约有 2,746 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0067 秒)

2451. UI-Input [ 46%]

..., onLoadComplete));//加载资源。 } private function onLoadComplete(e:*=null):void { for (var i:int = 0; i < skins.length;++i) { var input:TextInput = createInput(skins[i]); input.prompt = 'Type:'; input.x = (Laya.stage.width - input.width) / 2; input.y = i * SPACING + Y_OFFSET; } } private funct...

来源: Laya_示例 发布时间: 20260303

2452. 分享:为List组件下Item(Box)下的Button(或其他组件)进行监听! [ 46%]

...ya.loader.load("res/atlas/comp.json", Handler.create(this, onAssetLoaded), null, Loader.ATLAS); //添加UI界面 function onAssetLoaded() { Laya.stage.addChild(new TestUI()); } 附件 : --> ButtonClickDemo.rar 2017-05-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...

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

2453. laya.events.EventDispatcher_API3.0 [ 46%]

... Parameters Optional type: string (可选)事件类型,如果值为 null,则移除本对象所有类型的侦听器。 Returns EventDispatcher 此 EventDispatcher 对象。 offAllCaller offAllCaller(caller: any): EventDispatcher Defined in laya/events/EventDispatcher.ts:146 移除caller为ta...

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

2454. layaFlash 无法使用 Loader 加载外部SWF和图片 [ 46%]

...ventListener(Event.ADDED_TO_STAGE,init); } } private function init(e:Event=null):void { var loader:Loader=new Loader(); var context:LoaderContext=new LoaderContext(false,ApplicationDomain.currentDomain); loader.contentLoaderInfo.addEventListener(Event.COMPLETE,onSwfLoaded); loader.load(new URLReques...

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

2455. 这样的panel请问如何实现比较好? [ 46%]

... function () { var textUi = new TextUI(); Laya.stage.addChild(textUi); }), null, Laya.Loader.ATLAS);  } } new GameMain();   Test.zip 2018-08-10 0 1 分享 微博 QZONE 微信 Bert 赞同来自: 感觉很简单,不知道难点在哪里 点击后改变状态,重新布局就行 2018-08-10 0 3 分...

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

2456. 性能测试-虫子(慎入) [ 46%]

...ler.create(this, onTextureLoaded)); } private function onTextureLoaded(e:*=null):void { maggotTexture = Laya.loader.getRes(texturePath); initMaggots(); Laya.timer.frameLoop(1, this, animate); } private function initMaggots():void { var maggotContainer:Sprite; for (var i:int = 0; i wb.x + wb.width) x...

来源: Laya_示例 发布时间: 20260303

2457. UI-Input [ 46%]

..., onLoadComplete));//加载资源。 } private function onLoadComplete(e:*=null):void { for (var i:int = 0; i < skins.length;++i) { var input:TextInput = createInput(skins[i]); input.prompt = 'Type:'; input.x = (Laya.stage.width - input.width) / 2; input.y = i * SPACING + Y_OFFSET; } } private funct...

来源: Laya2.0_示例 发布时间: 20260303

2458. 要做一个方形倒计时,请问该怎么实现,不知道该怎么做 [ 45%]

...eturn; } this.graphics.drawPie(pos,pos,r,START+(360 - value), 270 , COLOR ,null,0); } private function ef():void { if( TheGame.GetServerTime() &gt; endTime ){ this.stop(); return; } var now:int = ( endTime - TheGame.GetServerTime() )/cdTime * 360; this.set360(now); } public function play(time:int,st...

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

2459. 将字节数组转为图片 [ 45%]

...    Laya.loader.load(url, Handler.create(this, byteLoadComplete,[url]),null,Loader.BUFFER); private function byteLoadComplete(url:String):void {             var buffer:ArrayBuffer = Laya.loader.getRes(url);             var byte:Byte = new Byte(buffer);             byte....

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

2460. XMLHttpRequest cannot load [ 45%]

...getRes获取不到。 Uncaught TypeError: Cannot read property 'load' of null 子域加载资源的时候报错什么原因?laya的load 已经加载完成了 但是微信还是报错。在子域工程 微信小游戏downLoadFile手动缓存的文件存在哪里?后续后续怎么load和getres ...

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