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

大约有 402 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0038 秒)

381. 如何继承自己写的类? [ 59%]

...nction KYModule() { } Laya.class(KYModule,"ky.module.KYModule",laya.events.EventDispatcher); KYModule.prototype.injectSource = function(json){ console.log("123"); } return KYModule; }());我如何再继承我写的这个KYModule? 我按常规js方式继承,IDE调试,都出现异常 2018-04-27 ...

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

382. HttpRequest详解(ActionScript-LayaAir基础篇(AS3)-数据与通信) [ 59%]

...pRequest对XMLHttpRequest进行了简单的封装,HttpRequest继承的是EventDispatcher,具有事件派发的功能。我们写个简单的例子来看下用法: ```java package { import laya.events.Event; import laya.net.HttpRequest; public class LayaSample { public function LayaSample() { /...

来源: Laya2.0_文档 发布时间: 20210715

383. 多个button如何区分 [ 58%]

...c function on(type:String, caller:*, listener:Function, args:Array = null):EventDispatcher 在调用函数后面添加区分button的参数应该可以吧 189*****192 • 2017-04-26 09:33 @cyqcyqcyq:我也有另一种解决方式 for(var i:int=0;i<10;i++) { var btn:Button=new Button(); ....... bt...

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

384. laya.ui.Button_API3.0 [ 58%]

...tring, data?: any): boolean Implementation of ISelect.event Inherited from EventDispatcher.event Defined in laya/events/EventDispatcher.ts:32 派发事件。 Parameters type: string 事件类型。 Optional data: any (可选)回调数据。注意:如果是需要传递多个参数 p1,p2,p3,......

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

385. 使用fairygui加载网络图片资源时,laya.core.js中的drawTexture会报错 [ 58%]

...段时,报了tex.once不是一个function的错,但是Texture继承自EventDispatcher,有once这个方法的啊。 http://thirdqq.qlogo.cn/g?b=sdk&k=JZWZibBicdrSCiaPLgFPLd7Cw&s=100&t=1483308298这里,我加载的图片地址是这样。我就想知道如何能用fairygui的GLoade...

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

386. 分享个资源加载的方法,类似白鹭的加载方式 [ 58%]

...载方式 第一次发,不足之处还请见谅 class RES extends Laya.EventDispatcher{ // 资源组 public static groups: any; // 资源 public static resources: any; // 完成加载资源配置文件 public static ONLOADEDRESJSON: string = "onLoadedResJson"; // 资源配置文件加载出错 pub...

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

387. 导出微信小游戏代码报错gameThirdScriptError [ 57%]

...ed TypeError: Cannot read property 'events' of undefined     at Function.EventDispatcher.__init$ (http://127.0.0.1:52880/game/code.js:630:29)     at http://127.0.0.1:52880/game/code.js:14:71     at Array.forEach (<anonymous>)     at Object.__init (http://127.0.0.1:52880/game/code.js:14...

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

388. 新手入坑请教下各位大神关于LayaMaxUI问题 [ 56%]

...本没有被调用,也查找了Laya.Scene的父类一直到laya.events.EventDispatcher才发现有这个虚方法,但是不知道为什么进不去onEnable方法里面,求解

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

389. 微信开发工具编译报错 [ 56%]

...ndefined TypeError: Cannot read property 'events' of undefined at Function.EventDispatcher.__init$ (http://127.0.0.1:35024/game/code.js:634:29) at http://127.0.0.1:35024/game/code.js:14:71 at Array.forEach (<anonymous>) at Object.__init (http://127.0.0.1:35024/game/code.js:14:36) at http://127...

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

390. HttpRequest详解(JavaScript-LayaAir基础篇(JS)-数据与通信) [ 55%]

...pRequest对XMLHttpRequest进行了简单的封装,HttpRequest继承的是EventDispatcher,具有事件派发的功能。我们写个简单的例子来看下用法: ```javascript //初始化引擎 Laya.init(1136,640); var xhr = new Laya.HttpRequest(); xhr.http.timeout = 10000;//设置超时时...

来源: Laya2.0_文档 发布时间: 20210714