大约有 820 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0076 秒)
Laya_社区(493) Laya2.0_文档(93) Laya3.0_api(91) Laya2.0_api(57) laya_api(53) Laya3.0_文档(22) Laya2.0_示例(7) Laya_示例(4)
...ng"; vs.height = 300; vs.pos(300, 300); vs.min = 0; vs.max = 100; vs.changeHandler = new Laya.Handler(this, this.onChange); this.owner.addChild(vs); }); } private onChange(value: number): void { this.text.text = "滚动条的位置: value=" + value; } } 运行效果: (动图2-1) Copyright ©...
来源: Laya3.0_文档 发布时间: 20230911
...例3D Laya.Sprite3D.load("res/threeDimen/skinModel/Zombie/Zombie.lh", Laya.Handler.create(this, function(zombie:Laya.Sprite3D):void { scene.addChild(zombie); this.zombieAnimator = (zombie.getChildAt(0) as Laya.Sprite3D).getComponent(Laya.Animator) as Laya.Animator;//获取Animator动画组件 this.z...
来源: Laya_社区 发布时间: 20190507
...源成功后,执行onLoaded回调方法 Laya.loader.load(this.skin,Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //创建一个Button实例 var btn:Laya.Button = new Laya.Button(this.skin); //将Button添加到舞台上 Laya.stage.addChild(btn); //设置Button相关属性 bt...
来源: Laya2.0_文档 发布时间: 20210714
...ivate function beginLoad():void { Laya.loader.load("res/images/rank.json", Handler.create(this, onLoaded)); } private function onLoaded():void { trace("加载成功"); var c:Image = new Image("rank/country.png"); Laya.stage.addChild(c); } 以上是子域项目中加载图集和取资源的代码...
来源: Laya_社区 发布时间: 20180830
...ion : Node 获取或设置当前选择的项对象。 ViewStack setIndexHandler : Handler 索引设置处理器。 默认回调参数:index:int ViewStack skewX : Number水平倾斜角度,默认值为0。以角度为单位。Sprite skewY : Number垂直倾斜角度,默认值为0。以角度...
来源: Laya2.0_api 发布时间: 20190513
...nglei999 赞同来自: var Loader = Laya.Loader; var loaderHandler = Laya.Handler; var scronw=640; var scronh=960; //初始化展示界面 Laya.init(scronw, scronh) //设置舞台背景色 Laya.stage.bgColor = '#999999'; //设置适配模式 Laya.stage.scaleMod...
来源: Laya_社区 发布时间: 20171024
...e { import laya.display.Stage; import laya.ui.TextInput; import laya.utils.Handler; public class TextInput_Example { public function TextInput_Example() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load...
来源: Laya3.0_api 发布时间: 20231115
... TextArea 实例。 package { import laya.ui.TextArea; import laya.utils.Handler; public class TextArea_Example { public function TextArea_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/inpu...
来源: Laya3.0_api 发布时间: 20231115
.../?Particle_T1 ) 主要就是: Laya.loader.load("SnowParticle.part", Handler.create(this, onAssetsLoaded), null, Loader.JSON); public function onAssetsLoaded(settings:ParticleSetting):void { sp = new Particle2D(settings); ...
来源: Laya_社区 发布时间: 20170522
...Message(onGetMessage); Laya.loader.load(urlconfig,new Handler( null,onLoaded),null); function onLoaded():void { trace("urlconfigurlconfigurlconfigurlconfigurlconfigurlconfigurlconfigurlconfigurlconfigv"); ...
来源: Laya_社区 发布时间: 20180525