大约有 1,240 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0054 秒)
Laya_社区(920) Laya3.0_api(80) Laya2.0_文档(78) Laya_示例(64) Laya2.0_示例(51) Laya3.0_文档(43) laya_api(2) Laya2.0_api(2)
.../初始化引擎 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
...切入切出,导致背景声音不播放问题。 Laya.stage.on(Laya.Event.BLUR, this, this.onBlur); Laya.stage.on(Laya.Event.FOCUS, this, this.onFocus); private onBlur() { // 暂停所有需要停止的逻辑 console.log("onBlur"); SoundManager.Instance.pau...
来源: Laya_社区 发布时间: 20250930
...接 提交 1 个回复 qian 赞同来自: 只播放一次获取回调需要Event.STOPPED 循环播放,获取每次播放完成是Event.COMPLETE 2018-01-19 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 fenxw 相关问题 骨骼动画...
来源: Laya_社区 发布时间: 20180119
....stage.height - 100 * Laya.Browser.pixelRatio); changeActionButton.on(Laya.Event.CLICK, this, function () { layaPlane.getChildAt(0).meshRender.material.diffuseTexture = renderTargetCamera.renderTarget; }); })); } function setMaterials(spirit3D) { if (spirit3D instanceof Laya.MeshSprite3D) { var mesh...
来源: Laya_示例 发布时间: 20251209
...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
...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
...(已经找到问题) package { import laya.display.Sprite; import laya.events.Event; public class MainUi extends Sprite { private var testPan:Sprite; public function MainUi() { super(); this.graphics.drawRect(0,0,500,500,"#fff0cc"); testPan = new Sprite(); testPan.name = "testPan"; this.addChild...
来源: Laya_社区 发布时间: 20161124
...w = function () { LoginView.super(this); this.btnReg.on(Laya.Event.CLICK, null, function () { console.log("on btReg event") }); } 目前编辑的代码辅助,好像还是无法获得父类的成员变量比如 btnReg。这是视频提到的一个ide的功能bug ...
来源: Laya_社区 发布时间: 20170317
...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
...序API dialog 自定义关闭效果,效果执行完,弹窗无法关闭 event自定义事件的问题 写了个边缘光的自定义shader,有很多问题,帮忙看一下 layaair2.0)请问js的Laya.Event.FRAME怎么用,看api中有,但写了不执行。 请问如何使我的自定义类...
来源: Laya_社区 发布时间: 20180328