大约有 170 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0042 秒)
...一层 比如我的图片在F:\tiankun\iWork\layawork\myLaya\laya\assets\comp下面 选的时候就只要选到F:\tiankun\iWork\layawork\myLaya\laya\assetsxi就行了 2018-05-30 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 yinglei999 ...
来源: Laya_社区 发布时间: 20171108
...rsion.FILENAME_VERSION); function beginLoad(){ Laya.loader.load("res/atlas/comp.atlas", Handler.create(null, onLoaded)); } function onLoaded(): void { //实例UI界面 new laya.UI_Label(); } 上图为在layaIDE中的显示效果。 不知道具体是什么原因,希望得到大家的指点...
来源: Laya_社区 发布时间: 20180529
....init(600, 400); Laya.stage.bgColor='#EEFFCC'; Laya.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 添加评论 免费帖 --> 分...
来源: Laya_社区 发布时间: 20170513
...,如TestPage.ui为 "type":"View","child":[{"props":{"x":0,"y":0,"skin":"comp/bg.png", .............. 所有内容全部在一行内,如果用diff看文件新旧版本差异,基本没法看 4. 很多编辑器都是有个组件面板,与资源面板独立,组件面板里面有Button,Image...
来源: Laya_社区 发布时间: 20160823
...e.scaleMode = Stage.SCALE_FIXED_WIDTH; Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { //实例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); console.log("myref-onloaded", testUI.myref....
来源: Laya_社区 发布时间: 20170720
... QZONE 微信 username_zmf 赞同来自: 对[MovieClip]的url属性赋值comp/data/黄色2.swf时遇错误: Cannot read property '_parent' of undefined 请问 在IDE舞台上进行显示时候报这个错,如何解决 swf_2.zip 2016-09-20 0 3 分享 微博 QZONE 微信 gplzh 赞同来自: 我这...
来源: Laya_社区 发布时间: 20160912
...ginLoad():void { //加载引擎需要的资源 Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, onLoaded)); } private function onLoad2():void { Laya.timer.once(2000, this, onLoaded); } private function onLoaded():void { //实例UI界面 //var testView:TestView = new TestView(); //Laya.s...
来源: Laya_社区 发布时间: 20180525
....stage.alignH = Laya.Stage.ALIGN_CENTER; Laya.loader.load([{url:"res/atlas/comp.json",type:Laya.Loader.ATLAS}],Laya.Handler.create(this,this.loadComp)); } private loadComp():void{ var parent:ui.ParentViewUI = new ui.ParentViewUI(); Laya.stage.addChild(parent); //当注释掉设置rotaion的代码则...
来源: Laya_社区 发布时间: 20170829
... private beginLoad():void{ Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, this.onLoaded)); } private onLoaded(): void { console.log("onLoaded ......"); GameBootstrap.wxPostMessage({ cmd:1, ...
来源: Laya_社区 发布时间: 20180529
...c"; //加载界面需要的资源文件 Laya.loader.load([{url: "res/atlas/comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); } private function onLoaded():void { //实例UI界面 listP = new ListPageUI(); Laya.stage.addChild(listP); Laya.timer.once(1000,this,onAdd);//1000毫秒后...
来源: Laya_社区 发布时间: 20170313