大约有 4,344 项符合查询结果, 库内数据总量为 30,897 项。 (搜索耗时: 0.0066 秒)
Laya_社区(2451) Laya3.0_api(673) Laya2.0_api(357) laya_api(289) Laya2.0_文档(271) Laya_示例(157) Laya2.0_示例(116) Laya3.0_文档(30)
...E_DOWN,onDown); btnOnClick.addEventListener(MouseEvent.MOUSE_UP,onUp); function onDown(e:MouseEvent):void { timer = new Timer(delay,1); //超过1秒就算是长按 timer.addEventListener(TimerEvent.TIMER,onTimer); timer.start(); } 也可以在点击事件的回调函...
来源: Laya_社区 发布时间: 20180408
...具导入Laya小游戏程序 报错了 xml.getElementsByTagName is not a function 2018-07-05 0 1 分享 微博 QZONE 微信 yminhao 赞同来自: 感谢分享,完美解决在微信开发工具中,用Laya.BitmapFont的loadFont方法,加载位图字体失败,报gameThirdScriptError的错误...
来源: Laya_社区 发布时间: 20180103
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
...或者在使用之前的类中,手动注册 runtime 形如: var reg:Function = ClassUtils.regClass; reg("script.GameUI",GameUI); 注册自己的 runtime 即可 2019-02-13 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被...
来源: Laya_社区 发布时间: 20190201
... ConchJNI.RunJS("App.setSdkId('"+ mem_id +"')");as里写的 public static function setSdkId(id:String):void{ alert(id); eventManager.event(MyEvent.SET_SDK_ID,id); } 完全不行 为啥呀 难道不能写app 必须写全局方法吗? 2018-08-10 添加评论 免费帖 --> 分...
来源: Laya_社区 发布时间: 20180810
...;(类里面包含坐标、Sprite3D等变量) } 2.ts module A{ export function test(){ a = new a(); a.vector2 = new Vector2(100, 100); a.加载() //Laya.loader.create 加载一个模型。 这个a类里面有回调方法 a里面回调方法,回调回来后,发现...
来源: Laya_社区 发布时间: 20180516
视频播放问题 LayaAirIDE_1.7.10_beta public function LayaSample() { //初始化引擎 Laya.init(1024, 650 , WebGL); var videoElement:Object = Browser.createElement("video"); Browser.document.body.appendChild(videoElement); // 设置Video元素地样式和属性 videoElement.style.zInddex = ...
来源: Laya_社区 发布时间: 20171108
...层按钮事件监听 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
...epthPass constructor render update __init__ Legend Object literal Variable Function Type alias Class Class with type parameter Constructor Method Enumeration Interface Static method
来源: Laya3.0_api 发布时间: 20231115