大约有 820 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0069 秒)
Laya_社区(493) Laya2.0_文档(93) Laya3.0_api(91) Laya2.0_api(57) laya_api(53) Laya3.0_文档(22) Laya2.0_示例(7) Laya_示例(4)
... 3 个回复 cuixueying 赞同来自: { Laya.loader.load("ui/image.png", Handler.create(this, onSkinLoadComplete)); } private function onSkinLoadComplete(e:*=null):void { var texture:Texture=Loader.getRes("ui/image.png"); var sp:Sprite=new Sprite(); sp.graphics.drawTexture(texture); Laya.stage.addCh...
来源: Laya_社区 发布时间: 20170603
...行解压,采用的是以下语句: Laya.loader.load("config.zip", Laya.Handler.create(this, this.configLoaded,["config.zip"]), null, Laya.Loader.BUFFER, 1, true) private configLoaded(url):void { var data:Object = Laya.loader.getRes(url); console.log(data) var e = new Zlib.Inf...
来源: Laya_社区 发布时间: 20171218
...ype:Loader.BUFFER }); // Laya.loader.load(assets, Handler.create(this, onAssetLoaded)); onAssetLoaded(); } 顺便问一下 你们的对于小图加载会自动加入大图集中去,一张满了就再加一张,这个大图集的重建是...
来源: Laya_社区 发布时间: 20160902
...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
...建了一个 Tab 实例。 package { import laya.ui.Tab; import laya.utils.Handler; public class Tab_Example { public function Tab_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/tab.png"], H...
来源: Laya3.0_api 发布时间: 20231115
... { Laya.loader.load(picAy[i],Handler.create(this, onAssetLoaded)) } } private function onAssetLoaded(texture:Texture):void { var ape:Sprite = new Sprite; ...
来源: Laya_社区 发布时间: 20161023
...sh({url:"res/atlas/comp.atlas", type:Loader.ATLAS}); Laya.loader.load(res, Handler.create(null, this.__onLoaded)); } private __onLoaded(): void { Laya.stage.addChild(new Test()); } } new Entry(); Test.ts import Sprite = Laya.Sprite; class Test extends Sprite{ constructor(){ super(); this._initVie...
来源: Laya_社区 发布时间: 20180308
... jacksing888 • 2018-01-22 23:37 Laya.loader.load( 'res/atlas/comp.json', Handler.create(this, function(){ container = new Laya.Sprite(); var x = 0,y =80; Laya.stage.addChild(container); for(var i=0;i<1200;i++){ var role = new Laya.Sprite(); x = x+0.1; y = y+0.1 role.x = x; role.y = y; role.load...
来源: Laya_社区 发布时间: 20180122
...可以赋值的方法后面增加上".bind(this)",或者回调方法用Handler.create(this,你的回调方法)。两种方法都可以解决你的问题! 2017-02-12 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 orecle 相关问题 T...
来源: Laya_社区 发布时间: 20170211
...orPicker 实例。 package { import laya.ui.ColorPicker; import laya.utils.Handler; public class ColorPicker_Example { public function ColorPicker_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/...
来源: Laya3.0_api 发布时间: 20231115