大约有 2,550 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0103 秒)
Laya_社区(1924) Laya3.0_api(163) laya_api(112) Laya2.0_api(107) Laya2.0_文档(76) Laya_示例(68) Laya2.0_示例(51) Laya3.0_文档(49)
...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
.../初始化引擎 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
...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
...盘会导致游戏舞台发生改变,你可以为你的舞台监听一个Event.RASIZE事件,判断Browser.width和Browser.height是否发生改变,如果发生改变,表示已经调用了键盘事件,如果Browser.width和Browser.height依然等于原始宽高,表示没有调起键盘,...
来源: Laya_社区 发布时间: 20170410
...如下 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
...n() { createMap(); Laya.stage.on(Event.MOUSE_DOWN, this, mouseDown); Laya.stage.on(Event.MOUSE_UP, this, mouseUp); })(); //创建地图 function createMap() { //创建地图对象 tiledM...
来源: Laya_社区 发布时间: 20180614
...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
...er, 并且 setMouseDownHandler: function (context, handler) { this.on(this.EVENT.MOUSE_DOWN, context, handler); }, setMoveHandler: function (context, handler) { this.on(this.EVENT.MOUSE_MOVE, context, handler); }, setMouseUpHandler: function (context, handler) { this.on(this.EVENT.MOUSE_UP, context,...
来源: Laya_社区 发布时间: 20170316
...个回复 cuixueying 赞同来自: 1、浏览器是否失去焦点,监听Event.BLUR和Event.FOCUS即可,按下home键,可以触发BLUR事件,但是单纯的监听home键,这个属于是系统的功能,浏览器做不到! 2017-05-06 0 0 分享 微博 QZONE 微信 sevennqi 赞同来自: ...
来源: Laya_社区 发布时间: 20170506
...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