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

大约有 2,538 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0083 秒)

521. 引擎socket类_onMessage bug [ 79%]

...       if (this.disableInput && data) {             this.event(Event.MESSAGE, data);             return;         }         if (this._input.length > 0 && this._input.bytesAvailable < 1) {             this._input.clear();             this._addIn...

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

522. Animation创建和销毁的问题 [ 79%]

.../初始化引擎 Laya.init(1136, 640,WebGL); trace("ok..."); Laya.stage.on(Event.KEY_DOWN, this, this.onKeydown); } private function onKeydown(event:Event):void { var self:* = this; if(event.keyCode === Keyboard.SPACE) { //移除动画 if(testAnim1) { testAnim1.clear(); testAnim1.removeSelf(); testA...

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

523. laya.display.FrameAnimation [ 79%]

...sses | Index | Frames No Frames FrameAnimationProperties | Methods | Events | Constants Packagelaya.displayClasspublic class FrameAnimationInheritanceFrameAnimation AnimationBase Sprite Node EventDispatcher ObjectSubclasses EffectAnimation 节点关键帧动画播放类。解析播放IDE内...

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

524. laya.d3.animation.AnimationClip [ 79%]

...l, constructParams:Array = null):AnimationClip[static] AnimationClip  addEvent(event:AnimationEvent):void 添加动画事件。 AnimationClip  duration():Number 获取动画片段时长。 AnimationClip  load(url:String, complete:Handler):void[static] 加载动画片段。 AnimationClipProtect...

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

525. LayaFlash把socket转成webSocket后监听不到connect事件(已解决) [ 78%]

...如下 package {     import flash.display.Sprite;     import flash.events.Event;     import flash.net.Socket;          public class TestWebSocket extends Sprite     {         public var s:Socket;                  public function TestWebSocket()         {  ...

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

526. 如何获得浏览器的焦点状态? [ 78%]

...个回复 cuixueying 赞同来自: 1、浏览器是否失去焦点,监听Event.BLUR和Event.FOCUS即可,按下home键,可以触发BLUR事件,但是单纯的监听home键,这个属于是系统的功能,浏览器做不到! 2017-05-06 0 0 分享 微博 QZONE 微信 sevennqi 赞同来自: ...

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

527. 排坑:Laya.HttpRequest()无效 [ 78%]

...a.HttpRequest(); xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE, this, completeHandler); xhr.once(Event.ERROR, this, errorHandler); xhr.on(Event.PROGRESS, this, processHandler); xhr.send("http://www.baidu.com", "", "get", "text"); function processHandler(data) { console.log...

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

528. 关于HttpRequest报错问题 [ 78%]

...nt-Type","application/x-www-form-urlencoded; charset=utf-8"); xmlHttp.once(Event.COMPLETE,this,onHttpRequestComplete); xmlHttp.once(Event.ERROR,this,errorHandler); xmlHttp.on(Event.PROGRESS,this,processHandler); function onHttpRequestComplete(e){ }; function processHandler(data){ console.log(data); ...

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

529. laya.d3.core.Sprite3D_API3.0 [ 78%]

...ve addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListener isAncestorOf off offAll offAllCaller on on...

来源: Laya3.0_api 发布时间: 20231115

530. 重复背景,全方向地图拖动Demo [ 78%]

...is.downMouseY = 0 Laya.loader.load(['bg/world_bg.jpg']) Laya.stage.on(Laya.Event.MOUSE_DOWN,this,this.mouseDown) Laya.stage.on(Laya.Event.MOUSE_UP,this,this.mouseUp) this.moveMap(this.offsetX,this.offsetY) } moveMap(x,y){ let X = -x00 let Y = -y00 this.map0.x = X this.map0.y = Y this.map3.x = X + 18...

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