大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0067 秒)
Laya_社区(1162) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya3.0_文档(117) Laya2.0_示例(109)
Slider控件的标签不居中 protected function showValueText():void { if (showLabel) { var label:Label = Slider.label; addChild(label); label.textField.changeText(_value + ""); if (isVertical) { label.x = _bar._x + 20; label.y = (_bar.height - label.height) * 0.5 + _bar._y; } else { label.y = _b...
来源: Laya_社区 发布时间: 20190125
...d('"+ mem_id +"')");as里写的 public static function setSdkId(id:String):void{ alert(id); eventManager.event(MyEvent.SET_SDK_ID,id); } 完全不行 为啥呀 难道不能写app 必须写全局方法吗? 2018-08-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...
来源: Laya_社区 发布时间: 20180810
...卓调用问题 JAVA: public class MainActivity extends Activity{ private void doLogin() { //怎么调用这个doLogin呢? }; } Laya: var doLogin = Laya.PlatformClass.createClass("demo.MainActivity"); doLogin .call("doLogin"); 请问该怎么调用? 2017-10-19 添加评论 免费帖 --> 分享 微...
来源: Laya_社区 发布时间: 20171019
...事件监听 this.changeActionButton.on(Laya.Event.CLICK, this, function():void { this.camera.removeAllLayers(); this.layerIndex ++; this.camera.addLayer(this.layerIndex%4 +1); this.camera.addLayer(5); }); ``` (图1)
来源: Laya2.0_文档 发布时间: 20210715
...事件监听 this.changeActionButton.on(Laya.Event.CLICK, this, function():void { this.camera.removeAllLayers(); this.layerIndex ++; this.camera.addLayer(this.layerIndex%4 +1); this.camera.addLayer(5); }); ``` (图1)
来源: Laya2.0_文档 发布时间: 20210715
.../ui.atlas",Handler.create(this,onLoaded)); } private function onLoaded():void{ //实例导出的UI类var efc:EffectAnimationDemoUI = new EffectAnimationDemoUI(); //添加到舞台Laya.stage.addChild(efc);}}} 2019-07-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果...
来源: Laya_社区 发布时间: 20190708
...unity里面导出的sprite3d,都用 Laya.timer.loop(10,null,function():void{ layaMonkey.transform.rotate(vect,true,false) }) 让他自转,但自己从unity里面导出的sprite3d却不转,这是怎么回事呀?求...
来源: Laya_社区 发布时间: 20180302
...取” 和“写入”操作。private function byteArrayGetAndSet_Test():void { var byteArray:ByteArray = new ByteArray(); //byteArray[100] = 20;//原生写法,该写法LayaFlash引擎中禁用 byteSet(byteArray, 100, 20); //LayaFlash允许的写法 trace("AS3/LayaFlash byeArray possition 100 is:...
来源: Laya_社区 发布时间: 20151028
...取json对象的result值? private function onHttpComplete(evt:*= null):void{ trace("http.data:"+http.data); trace(http.data.result); } 输出结果: http.data:{ "result":"0", "msg":"登录失败!" } undefined 求解:如何获取json对...
来源: Laya_社区 发布时间: 20170111
...码里面设置宽高为clientW,clientH private function onResize(e:Event):void { if (App.isFull) { Laya.stage.width=Browser.clientWidth; Laya.stage.height=Browser.clientHeight; } else { Laya.stage.width=1008; Laya.stage.height=610; } } 这是全屏和非全屏时候的一段代码,全屏控制用...
来源: Laya_社区 发布时间: 20170424