大约有 1,210 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0057 秒)
Laya_社区(874) Laya2.0_文档(85) Laya3.0_api(61) Laya2.0_api(58) laya_api(55) Laya_示例(32) Laya2.0_示例(27) Laya3.0_文档(18)
打包后,ui界面的元素获取不到 在ui界面给元素的var赋值,创建界面后在h5里面能通过.xx获取到元素 打包成native后,.xx获取到的是undefined 附件 : --> 2020-06-28 添加评论 悬赏 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...
来源: Laya_社区 发布时间: 20200628
...的应该是两个label以及space的宽度之和才正常。代码如下 var hbox:HBox = new HBox(); hbox.align = Stage.ALIGN_MIDDLE; hbox.space = 50; // hbox.autoSize = true; var label:Label = new Label(); label.text = "https://ldc2.layabox.com/layadownload/"; label.fontSize = 30; label.mouseEnabl...
来源: Laya_社区 发布时间: 20190606
... ot%3B,1); this.htmlvideo.video.addEventListener("loadedmetadata",()=>{ var videoTexture:Laya.VideoTexture = new Laya.VideoTexture(); videoTexture.video = this.htmlvideo.video; videoTexture.video.play(); videoTexture.video.loop = true; var texture2D = new Laya.Texture2D(videoTexture.video.videoWi...
来源: Laya_社区 发布时间: 20240305
...写法,AS/TS思路一样,请根据自己的需求进行修改即可!var Loader = laya.net.Loader; var Handler = laya.utils.Handler; var Event = laya.events.Event; // 创建TestPageUI的子类 function TestUI() { TestUI.super(this); //list赋值,先获得一个数据源数组 var arr = ; for ...
来源: Laya_社区 发布时间: 20170513
...c function Main() { //初始化引擎 Laya.init(500,500);//初始化引擎 var skins:Array = [ "res/button-1.png" ]; Laya.loader.load(skins, Handler.create(this, onUIAssetsLoaded)); } public function onUIAssetsLoaded():void { var btn:Button = new Button("res/button-1.png"); Laya.stage.addChild(btn);...
来源: Laya_社区 发布时间: 20180529
...is.showTotalSeconds(); this.createController(); } private showBg(): void { var bg: Image = new Image(this.bgSkin); bg.size(224, 302); bg.pos(Laya.stage.width - bg.width >> 1, Laya.stage.height - bg.height >> 1); Laya.stage.addChild(bg); } private createTimerAnimation(): void { this.counter = new Cli...
来源: Laya2.0_文档 发布时间: 20210714
...ffectAnimation) 的教程, 创建完ui后,也F12导出了 代码行里 var efc:ui.EffectAnimationDemoUI = new ui.EffectAnimationDemoUI(); 这个EffectAnimationDemoUI会报错请问是哪里出问题了 有一句在index.html中引用 这是什么意思 2018-08-05 添加评论 免费帖 -->...
来源: Laya_社区 发布时间: 20180805
...gColor = '#0000ff'; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; var tiledMap; var viewRect; var mLastMouseX = 0; var mLastMouseY = 0; var mX = 0; var mY = 0; (function() { createMap(); Laya.stage...
来源: Laya_社区 发布时间: 20180614
...*/ public class HProgressSlider extends HSlider { /**@private */ protected var _progress:Image protected var _proMask:Sprite; public function HProgressSlider(skin:String=null) { super(skin); } override protected function initialize():void{ super.initialize(); _proMask = new Sprite(); _proMask.graphi...
来源: Laya_社区 发布时间: 20170327
官方的示例贴上来,怎么没反映啊 var JiHuo = (function (_super) { function JiHuo() { JiHuo.super(this); var xhr = new Laya.HttpRequest(); xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE, this, completeHandler); xhr.once(Event.ERROR, this, errorHandler); xhr.on(...
来源: Laya_社区 发布时间: 20180419