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

大约有 2,538 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0089 秒)

221. 向官方反映1.75引擎库后 事件执行 发生的bug [ 89%]

...      *执行事件处理。         */         __proto.runEvent=function(){             var len=this._eventList.length;             if (!len)return;             var _this=this;             var i=0;             var localevnetList = this._e...

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

222. WebSocket发送与接收数据(TypeScript-LayaAir基础篇(TS)-数据与通信) [ 89%]

...实例化socket之后四个事件是我们必须监听的: ```typescript Event.OPEN :连接正常打开抛出的事件 Event.MESSAGE :接收到消息抛出的事件 Event.CLOSE :socket关闭抛出的事件 Event.ERROR :连接出错抛出的事件 ``` 上面这四个事件是必须的,这也是...

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

223. 最新版本IDE,如何获取http返回的json数据 [ 89%]

...a.HttpRequest(); xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE,this,completeHandler); xhr.once(Event.ERROR,this,errorHandler); xhr.once(Event.PROGRESS,this,processHandler);  var sendData = {account:"aaa",password:"bbb"} xhr.send("http://xxx/login", JSON.stringify(sendData...

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

224. [LayaAir3]挂在scene3d节点上的脚本,onAwake(){ Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.onMouseDown); } 点击就报错 [ 89%]

[LayaAir3]挂在scene3d节点上的脚本,onAwake(){ Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.onMouseDown); } 点击就报错  挂在scene3d节点上的脚本,onAwake(){ Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.onMouseDown);} 点击就报错 附件 : --> 2023-12-20 添加评论 ...

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

225. 骨骼动画进阶(ActionScript-2D进阶篇(AS3)-动画进阶) [ 89%]

...{ import laya.ani.bone.Skeleton; import laya.ani.bone.Templet; import laya.events.Event; import laya.webgl.WebGL; /** * ... * @author ww */ public class SkeletonTempletSample { public var templet:Templet; public function SkeletonTempletSample() { WebGL.enable(); Laya.init(1000, 900); //创建动画...

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

226. Ignored attempt to cancel a touchmove event with cancelable=false [ 89%]

Ignored attempt to cancel a touchmove event with cancelable=false 在华为荣耀20  安卓10系统下,手机 触摸点击速度快一些,会导致元素鼠标事件消失,但是舞台事件还可以执行 每次点击报下面的警告, 在laya.core源码里面加上判断后,     (...

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

227. 关于mouseThrough设计原理问题? [ 89%]

...hrough 的设计原理,如果sprite对象没有设置点击事件(如 Event.CLICK),那么 sprite.mouseThrough = false;设置是没有效果的,这样设计是不是有问题?var a:Sprite = new Sprite(); a.graphics.drawRect(0,0,200, 200, "#00ff00"); a.size(200, 200); a.pos(0, 0); a.on(Even...

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

228. layaFlash 无法使用 Loader 加载外部SWF和图片 [ 89%]

... import flash.display.MovieClip; import flash.display.Sprite; import flash.events.Event; import flash.net.URLRequest; import flash.system.ApplicationDomain; import flash.system.LoaderContext; public class SwfBinary extends Sprite { public function SwfBinary() { super(); if(stage) { init(); } else { ...

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

229. layabox加载fairygui发布的二进制文件报错 [ 88%]

...e { Loader.clearRes(url); console.warn("[error]Failed to load:",url); this.event(/*laya.events.Event.ERROR*/"error",url); } } if (this._failRes[url])this._failRes[url]=0; delete LoaderManager._resMap[url]; if (resInfo.originalUrl){ content=Loader.getRes(resInfo.originalUrl); } resInfo.event(/*laya.e...

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

230. 在微信分享成功的回调函数里,Laya播放音效失败。 [ 88%]

...his, this.onLoop); //移除舞台的鼠标移动事件 Laya.stage.off(Laya.Event.MOUSE_MOVE); }  //恢复 GameEx.prototype.resume = function () { //在循环中创建敌人 Laya.timer.frameLoop(1,this,this.onLoop); console.log("恢复播放音乐") Laya.SoundManager.stopMusic(); Laya.SoundManager.p...

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