• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 4,336 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0092 秒)

871. 分享一个虚拟摇杆,比较粗糙,没做优化 [ 85%]

分享一个虚拟摇杆,比较粗糙,没做优化 function ModeKey() { //大圆 this.moveMax = null; //小圆点 this.moveKey = null; //当前的舞台 this.layer = null; //是否按下 this.isDown = false; //是否弹起 this.isUp = false; //是否移动 this.isMove = false; } tip:其实是...

来源: Laya_社区 发布时间: 20171030

872. laya.particle.Particle2D [ 85%]

...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

873. 骨骼动画-Spine事件 [ 85%]

... 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

874. laya.ui.DialogManager [ 85%]

...组件实例。 Node addInputChild(node:Node):NodeNode callLater(method:Function, args:Array = null):void 延迟运行指定的函数。 在控件被显示在屏幕之前调用,一般用于延迟计算数据。 Node clearTimer(caller:*, method:Function):void 清理定时器。功能同Laya.time...

来源: Laya2.0_api 发布时间: 20190513

875. 分享:List相关(Item增删功能) [ 85%]

...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

876. 关于HttpRequest报错问题 [ 85%]

....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

877. ProgressBar属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 85%]

...建出符合自己需要的进度条。 **示例代码:** ```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

878. 用Socket连接服务器,服务端显示已经有登录,但Event.OPEN没有触发 [ 85%]

...protected var recvBuf:Byte = null;                  public function CConnector()         {             this.sendBuf = this.output;             this.recvBuf = this.input;                          this.on(Event.OPEN, this, OnConne...

来源: Laya_社区 发布时间: 20170920

879. swf转成H5资源显示超出原有范围 [ 85%]

...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

880. 网页JS与layaAir相互访问各自的方法 [ 85%]

...。 如图所示。首先红色标出了一个运行即执行的方法(function(){})();但是紧跟后面还有一段({1:function.......})里面的才是我们写的东西。 我试图用个变量来接受匿名方法,(如 var AllFunction=function(){})()({1:function.......}))但...

来源: Laya_社区 发布时间: 20190621