大约有 2,538 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0089 秒)
Laya_社区(1915) Laya3.0_api(163) laya_api(112) Laya2.0_api(107) Laya2.0_文档(76) Laya_示例(68) Laya2.0_示例(51) Laya3.0_文档(46)
... *执行事件处理。 */ __proto.runEvent=function(){ var len=this._eventList.length; if (!len)return; var _this=this; var i=0; var localevnetList = this._e...
来源: Laya_社区 发布时间: 20170614
...实例化socket之后四个事件是我们必须监听的: ```typescript Event.OPEN :连接正常打开抛出的事件 Event.MESSAGE :接收到消息抛出的事件 Event.CLOSE :socket关闭抛出的事件 Event.ERROR :连接出错抛出的事件 ``` 上面这四个事件是必须的,这也是...
来源: Laya2.0_文档 发布时间: 20210714
...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
[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
...{ 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
Ignored attempt to cancel a touchmove event with cancelable=false 在华为荣耀20 安卓10系统下,手机 触摸点击速度快一些,会导致元素鼠标事件消失,但是舞台事件还可以执行 每次点击报下面的警告, 在laya.core源码里面加上判断后, (...
来源: Laya_社区 发布时间: 20200512
...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
... 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
...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
...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