大约有 573 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0046 秒)
Laya_社区(347) Laya3.0_api(60) Laya2.0_文档(52) Laya_示例(41) Laya2.0_示例(40) Laya3.0_文档(29) laya_api(2) Laya2.0_api(2)
...长时间运行后,这个label设置就不起作用了。 代码类似 this.MoneyLbl.text = 一个值。 打了断点,值是附上了,只是UI没有变化,请问这是什么原因。 2018-12-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...
来源: Laya_社区 发布时间: 20181227
...件函数,名字是可以对应上的 ShowMsg(){ console.log("ShowMsg"); this.showMsgFunc && this.showMsgFunc(); } } ``` 在加载好场景之后,我们将我们创建的这个脚本添加给cube。 ```typescript //加载场景 Laya.Scene3D.load("res/threeDimen/scene/LayaScene_AnimationEvent/Con...
来源: Laya2.0_文档 发布时间: 20210715
...nt="hu" text.pos(600,600); Laya.stage.addChild(text); Laya.timer.once(1000,this,onLoop); } private function onLoop():void { var text:Text=new Text(); text.fontSize=40; text.color="#FF00FF"; text.text="嘻嘻嘻嘻嘻"; text.font="hu" Laya.stage.addChild(text); } } } 注意: 首次用到的(...
来源: Laya_社区 发布时间: 20160514
...ring ="http://layabox.com/"; qrcode.makeCode(url); Laya.stage.once("click",this,clickHandler); qrcodeSp = new Sprite(); Laya.stage.addChild(qrcodeSp); } private function clickHandler():void { var url:String = qrcode._oDrawing._elImage.src;//获取,注意这里是异步的,开发者可以加个...
来源: Laya2.0_文档 发布时间: 20210715
...; xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE,this,completeHandler); xhr.once(Event.ERROR,this,errorHandler); xhr.on(Event.PROGRESS,this,processHandler); xhr.send("res/data.data","","get","text"); } private function processHandler(data:Object):void { trace(data); } priva...
来源: Laya2.0_文档 发布时间: 20210715
...me":"item1", "scale":[2,2] }, "child":[ { "type":"Text", "props":{ "text":"this is a test", "var":"label", "rumtime":"" } } ] } ClassUtils getInstance(className:String):*[static] 根据名称创建 Class 实例。 ClassUtils getRegClass(className:String):*[static] 返回注册 Class 映射。 ...
来源: laya_api 发布时间: 20170929
... 华为手机 SoundManager.playSound("GameSound/aa/bb.mp3", 1,new Handler(this,soundComplete,[aa,bb])); 没有音效 上面执行完毕后 不会 执行soundComplete private function soundComplete(aa,bb):void { //执行代码 } 2018-03-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...
来源: Laya_社区 发布时间: 20180314
...运行报错 Uncaught Can not find scene:GameView.scene undefined Warning!,this class[MiniAdpter] already exist: Object {init: } 2.0.0编译报错Cannot find global type 'Array' 构建app后导入AS报错Could not find com.android.tools.build:gradle:3.1.2. LayaNative2.2运行报错。:getBitmapData ...
来源: Laya_社区 发布时间: 20210624
... __getset(0,__proto,'dataSource',function(){ return this._dataSource; },function(value){ this._dataSource=value; for (var prop in this._dataSource){ if (this.hasOwnProperty(prop)&& !((typeof (this[...
来源: Laya_社区 发布时间: 20190803
...Image; //private text: Laya.Label; constructor(){ super(); this.size(Item.WID, Item.HEI); this.img = new Laya.Image(); //this.text = new Laya.Label(); this.addChild(this.img); //this.addChild(this.text); } public setImg(src: string): vo...
来源: Laya_社区 发布时间: 20180507