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

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

541. Image.loadImage 方法加载问题 [ 78%]

...button/button_window_public_space_enter.png";    this.btnEnter.on( Laya.Event.CLICK, this, this.btnClick );    this.width = 1553;    this.height = 270;   }   public set publicSpaceData ( publicSpaceInfoData:any )   {    this._publicSpaceData = publicSpaceInfoData;    console.log...

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

542. layaAir真的没办法做涂鸦板? [ 78%]

...rr=[]; var s=new Laya.Sprite(); Laya.stage.addChild(s); Laya.stage.on(Laya.Event.MOUSE_DOWN,this,function(e){ arr.push([e.stageX,e.stageY]); Laya.stage.on(Laya.Event.MOUSE_MOVE,this,bb) }) Laya.stage.on(Laya.Event.MOUSE_UP,this,function(){ Laya.stage.off(Laya.Event.MOUSE_MOVE,this,bb) }) function bb...

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

543. laya.display.Input [ 78%]

... All Classes | Index | Frames No Frames InputProperties | Methods | Events | Constants Packagelaya.displayClasspublic class InputInheritanceInput Text Sprite Node EventDispatcher Object Input 类用于创建显示对象以显示和输入文本。 Input 类封装了原生的文本输入框...

来源: laya_api 发布时间: 20170929

544. laya.media.VideoTexture_API3.0 [ 78%]

...oveReference _setCPUMemory _setCreateURL _setGPUMemory canPlayType destroy event gpuCompressFormat hasListener isCreateFromURL load loadedmetadata off offAll offAllCaller on once pause play destroyUnusedResources Constructors constructor new VideoTexture(): VideoTexture Overrides BaseTexture.constru...

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

545. 关于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

546. laya.ui.Tree [ 78%]

...| All Classes | Index | Frames No Frames TreeProperties | Methods | Events Packagelaya.uiClasspublic class TreeInheritanceTree Box UIComponent Sprite Node EventDispatcher ObjectImplements IRender Tree 控件使用户可以查看排列为可扩展树的层次结构数据。 Public Properties ...

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

547. tiledMap类createMap()创建地图 如何理解这个viewRect视口区 [ 78%]

...n()     {         createMap();          Laya.stage.on(Event.MOUSE_DOWN, this, mouseDown);         Laya.stage.on(Event.MOUSE_UP, this, mouseUp);     })(); //创建地图     function createMap()     {         //创建地图对象         tiledM...

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

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

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

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

549. laya.d3.animation.AnimationClip [ 78%]

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

550. 如何实现鼠标左键点中按钮,然后按钮随鼠标拖动 [ 78%]

...过多种方式实现,以下几个方法仅供参考 1、给button监听Event.DOWN事件,在Down的回调函数中监听Event.MOVE事件,在Move事件的回调中让button.x=laya.stage.mouseX,button.y=laya.stage.mouseY 2、直接在Event.DOWN回调函数下,设置button.startDrag()方...

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