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

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

821. 使用HttpRequest向外部链接请求ip所在省份时,遇到 No 'Access-Control-Allow-Origin' header错误 [ 70%]

...息 var req:HttpRequest = new HttpRequest();             req.once(Event.COMPLETE, this, function():void             {                 trace(req.data);             });             req.once(Event.ERROR, this, function():void             {    ...

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

822. LayaNative WebSocket包堆积问题 [ 70%]

...么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 S_eVent 相关问题 发起问题须知,必看!!!不按提问规则的,官方拒绝解答!!! unity导出粒子文件问题 laya针对页游耗用内存大的问题是如何解决的? LayaAir3D UnityPlugin 使...

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

823. loader.load 方法 在加载失败的时候会不会自己重新尝试加载呢? [ 70%]

...载失败以及加载完成有自己对应的事件 加载失败请监听Event.ERROR 加载成功请监听Event.COMPLETE(该参数在loader方法中已经作为参数进行添加) 所以加载失败后会触发加载失败事件,不会重新进行加载。 2016-11-20 0 0 分享 微博 QZONE ...

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

824. 请问如何给ui下所有的button加一个点击监听事件? [ 70%]

...听函数参数的target判断是不是button来做。 Laya.stage.on(Laya.Event.CLICK, this, function(res:Laya.Event){ if (res.target instanceof Laya.Button){ // click button } }) 2018-12-01 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人...

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

825. progressbar设置皮肤后, 马上destroy会报bug [ 70%]

..., "$bar.png"); this.callLater(this.changeValue); this._sizeChanged(); this.event(Event.LOADED); }加载过程中, 组件执行了destroy()方法后,  this._bg.skin = this._skin;// 这行会报错 2020-01-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: ...

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

826. 不能成功调用 DiaLog Close 关闭方法 [ 70%]

...rt(){ Start.super(this); // 注册点击开始事件 this.beginBtn.on(Laya.Event.CLICK,this,this.onBeginClick); // 注册跳转事件 this.linkMsleanBtn.on(Laya.Event.CLICK,this,this.onLinkClick); // 初始化 UI 界面显示 this.reset(); } // 注册 Start 类 Laya.class(Start,"Start",_super); var ...

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

827. 加载成功要怎样判断呢? [ 70%]

...? 不管是Laya.loader.load(url, onLoaded, ...) 还是Laya.loader.on(Event.COMPLETE, this, onLoaded); 加载失败都会到onLoaded,那怎么区分是不是加载成功? 2017-03-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...

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

828. UI运行时 · LayaAir3.0文档 · LAYABOX [ 70%]

...oid { // Button添加鼠标事件,让Image不显示 this.Button.on( Laya.Event.MOUSE_DOWN, this, ()=>{ this.Image.visible = false; }); } 运行此场景来看看效果,如动图2-7所示。 (动图2-7) UI组件脚本就已经介绍完了,再复杂的UI都可以通过勾选组件声明...

来源: Laya3.0_文档 发布时间: 20240624

829. laya.ui.ProgressBar [ 70%]

...Classes | Index | Frames No Frames ProgressBarProperties | Methods | Events Packagelaya.uiClasspublic class ProgressBarInheritanceProgressBar UIComponent Sprite Node EventDispatcher Object ProgressBar 组件显示内容的加载进度。 Public Properties Hide Inherited Public Properties Show...

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

830. websocket请教下,服务器发送过来的数据怎么获取 [ 70%]

...et请教下,服务器发送过来的数据怎么获取 private openHandler(event: any = null): void { console.log(`平台 正确建立连接`); this.socket.send("getScore"); } private receiveHandler(msg: any = null,data): void { console.log(`接收到数据触发函数:` + msg); ////////////////////...

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