大约有 345 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0046 秒)
Laya_社区(272) Laya2.0_文档(21) Laya2.0_示例(10) Laya_示例(9) Laya3.0_文档(9) laya_api(8) Laya3.0_api(8) Laya2.0_api(8)
... yyqx1122 • 2018-03-28 10:33 var roleTemp = new Templet(); roleTemp.on(Event.COMPLETE, this, function(){ var roleAni = roleTemp.buildArmature(1); Laya.stage.addChild(roleAni); }) roleTemp.loadAni('res/spine/knight/effect1.sk'); SK动画已经预加载了:Laya.loader.load(['res/spine/knight/effec...
来源: Laya_社区 发布时间: 20171116
...ectByUrl("wss://192.168.1.250:5000/websocket/"); this.socket.on(Laya.Event.OPEN, this, this.openHandler); this.socket.on(Laya.Event.MESSAGE, this, this.receiveHandler); this.socket.on(Laya.Event.CLOSE, this, this.closeHandler); this.socket.on(Laya.Event.ERROR, this, this.erro...
来源: Laya_社区 发布时间: 20180510
...){ var mc:MovieClip = new MovieClip; mc.load(ul); this.addChild(mc); mc.on(Event.COMPLETE,this,stopNowMC) } } private function stopNowMC(e:Event):void{ trace(e.currentTarget); trace(e.target); MovieClip(e.currentTarget).gotoAndStop(MovieClip(e.target).count-1); } AS3代码是这样的,但是COMPLE...
来源: Laya_社区 发布时间: 20161221
...3创建的开放域项目跑不起来 一行代码没写呢 error: events.js:163 throw er; // Unhandled 'error' even TypeScript error: libs/layaair.d.ts(22664,20): Error TS2304: Cannot find name 'WordText'. 附件 : --> fbOpen.rar 2019-11-14 添加评论 免费帖 --> 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20191114
...Right.bottom+100; } //事件注册 //开始游戏 this.StartLeft.on(Laya.Event.CLICK,null,function(){ //TO GamePage2 console.log("left onclick"); Laya.stage.addChild(new GameView); }); //分享快乐 this.StartRight.on(Laya.Event.CLICK,null,function(){ //超链接 onLink(href); }); //天猫Log...
来源: Laya_社区 发布时间: 20180810
...03:8888"); // this.socket.connect("10.10.1.103",8888); this.socket.on(Laya.Event.OPEN, this, openHandler); //建立连接 this.socket.on(Laya.Event.MESSAGE, this, receiveHandler); //接收到数据触发函数 this.socket.on(Laya.Event.CLOSE, this, closeHandler); //关闭事件 this.socket.on(Laya.E...
来源: Laya_社区 发布时间: 20181107
...completeHandler], false); this.completeHandler = null; } this.stop(); this.event(Laya.Event.COMPLETE); return; } if (this.loops > 0) { this.loops--; } this.startTime = 0; this.play(); } play() { this.isStopped = false; Laya.SoundManager.addChannel(this); this._audio.play(); } set startTime(time) ...
来源: Laya_社区 发布时间: 20200103
...ce _setCPUMemory _setCreateURL _setGPUMemory addDep addDeps create destroy event hasListener isCreateFromURL off offAll offAllCaller on once destroyUnusedResources Constructors constructor new PrefabImpl(api: IHierarchyParserAPI, data: any, version: number): PrefabImpl Overrides Prefab.constructor D...
来源: Laya3.0_api 发布时间: 20231115
...a.Socket(); this.socket.endian = Laya.Byte.BIG_ENDIAN; this.socket.on(Laya.Event.OPEN, this, this.onConnectSuccess); this.socket.on(Laya.Event.CLOSE, this, this.onDisonnect); this.socket.on(Laya.Event.ERROR, this, this.onConnectFail); this.socket.on(Laya.Event.MESSAGE, this, this.onReceive); this.so...
来源: Laya_社区 发布时间: 20180910
...类,请通过Laya.loader访问。 全部队列加载完成,会派发 Event.COMPLETE 事件;如果队列中任意一个加载失败,会派发 Event.ERROR 事件,事件回调参数值为加载出错的资源地址。 LoaderManager 类提供了以下几种功能: 多线程:默认5个加...
来源: Laya3.0_api 发布时间: 20231102