大约有 4,336 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0092 秒)
Laya_社区(2450) Laya3.0_api(673) Laya2.0_api(357) laya_api(289) Laya2.0_文档(271) Laya_示例(157) Laya2.0_示例(116) Laya3.0_文档(23)
分享一个虚拟摇杆,比较粗糙,没做优化 function ModeKey() { //大圆 this.moveMax = null; //小圆点 this.moveKey = null; //当前的舞台 this.layer = null; //是否按下 this.isDown = false; //是否弹起 this.isUp = false; //是否移动 this.isMove = false; } tip:其实是...
来源: Laya_社区 发布时间: 20171030
...Time:Number = 1):void 时钟前进 Particle2D clearTimer(caller:*, method:Function):void 清理定时器。功能同Laya.timer.clearTimer()。 Node contains(node:Node):Boolean 当前容器是否包含指定的 Node 节点对象 。 Node customRender(context:RenderContext, x:Number, y:Number):vo...
来源: laya_api 发布时间: 20170929
... 0; private var mFactory2:Templet; private var mLabelSprite:Sprite; public function Skeleton_SpineEvent() { WebGL.enable(); Laya.init(Browser.width, Browser.height); Laya.stage.bgColor = "#ffffff"; Stat.show(); mLabelSprite = new Sprite(); startFun(); } public function startFun():void { mAniPath = "...
来源: Laya2.0_示例 发布时间: 20241002
...组件实例。 Node addInputChild(node:Node):NodeNode callLater(method:Function, args:Array = null):void 延迟运行指定的函数。 在控件被显示在屏幕之前调用,一般用于延迟计算数据。 Node clearTimer(caller:*, method:Function):void 清理定时器。功能同Laya.time...
来源: Laya2.0_api 发布时间: 20190513
...istP:ListPageUI;//UI面板 private var arr:Array;//list数据数组 public function LayaUISample() { //初始化引擎 Laya.init(600, 800); Laya.stage.bgColor = "#ffcccc"; //加载界面需要的资源文件 Laya.loader.load([{url: "res/atlas/comp.json", type: Loader.ATLAS}], Handler.create(this, on...
来源: Laya_社区 发布时间: 20170313
....ERROR,this,errorHandler); xmlHttp.on(Event.PROGRESS,this,processHandler); function onHttpRequestComplete(e){ }; function processHandler(data){ console.log(data); }; function errorHandler(data){ }; xmlHttp.send("http://","","post","text"); 2018-02-02 添加评论 免费帖 --> 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20180202
...建出符合自己需要的进度条。 **示例代码:** ```javascript (function() { var Stage = Laya.Stage; var ProgressBar = Laya.ProgressBar; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var progressBar; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL);...
来源: Laya2.0_文档 发布时间: 20210715
...protected var recvBuf:Byte = null; public function CConnector() { this.sendBuf = this.output; this.recvBuf = this.input; this.on(Event.OPEN, this, OnConne...
来源: Laya_社区 发布时间: 20170920
...ies; public class Main extends Sprite { public function Main():void { if (stage) init(); else addEventListener(Event.ADDED_TO_STAGE, init); } private function setWindowFullS...
来源: Laya_社区 发布时间: 20170317
...。 如图所示。首先红色标出了一个运行即执行的方法(function(){})();但是紧跟后面还有一段({1:function.......})里面的才是我们写的东西。 我试图用个变量来接受匿名方法,(如 var AllFunction=function(){})()({1:function.......}))但...
来源: Laya_社区 发布时间: 20190621