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

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

91. 用Socket连接服务器,服务端显示已经有登录,但Event.OPEN没有触发 [ 88%]

...  public function CConnector()         {             this.sendBuf = this.output;             this.recvBuf = this.input;                          this.on(Event.OPEN, this, OnConnected);             this.on(Event.CLOSE, this, OnDisc...

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

92. animation动画结束后怎么监听? [ 88%]

...的链接 提交 2 个回复   赞同来自: anifish1.on(Event.COMPLETE,this,complete) function complete(){                             } 你是不是要问这个 2018-10-11 0 1 分享 微博 QZONE 微信 FullyI 赞同来自: 我用这个方法监听动画播放完成,有问题,...

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

93. 音频-播放演示 [ 88%]

...undButton.y; Laya.stage.addChild(musicButton); soundButton.on(Event.CLICK, this, onPlaySound); musicButton.on(Event.CLICK, this, onPlayMusic); } function createButton(label) { var w = 110; var h = 40; var button = new Sprite(); button.size(w, h); button.graphics.drawRect(0, 0, w, h, "#FF7F50"); butt...

来源: Laya_示例 发布时间: 20251209

94. JQ集成到Laya二次封装 [ 88%]

...===================== JQ(aWater).on('click', function () { console.log( JQ(this).index() );//不传 匹配父级元素下的子元素开始算索引 // console.log( JQ(this).index(aWater) );//传数组,从当前数组开始算索引 // console.log( JQ(this).siblings(aWater).remove() );//指定数...

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

95. 三个图好像无法绑定不同的事件? [ 87%]

...2.png',100,100,90,90); Laya.stage.addChild(img1); img1.on(Laya.Event.CLICK,this, function(name){ console.log(name);},['图1']); var img2 = new Laya.Sprite(); img2.loadImage('https://layaair.ldc.layabox.com/demo/h5/res/apes/monkey2.png',200,300,90,90); Laya.stage.addChild(img2); img2.on(Laya.Event.CL...

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

96. Laya.Socket 是不是不支持Safari浏览器二进制格式的数据传输? [ 87%]

...a.Byte; constructor() { //初始化引擎 Laya.init(600, 400, Laya.WebGL); this.byte = new Laya.Byte(); //这里我们采用小端 this.byte.endian = Laya.Byte.LITTLE_ENDIAN; this.socket = new Laya.Socket(); //这里我们采用小端 this.socket.endian = Laya.Byte.LITTLE_ENDIAN; //建立连接 this...

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

97. ANDORID 切后台 怎么监听啊 [ 87%]

...啊 ANDORID 切后台 怎么监听啊?  Laya.stage.on(Laya.Event.BLUR, this, this._on_blur); Laya.stage.on(Laya.Event.FOCUS, this, this._on_focus);这个没有用啊。 2018-05-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...

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

98. spine动画,微信模拟器正常,真机动画图片颠倒!!!引擎大bug!!! [ 87%]

...模拟器正常。真机如下:   以下是代码: protected onEnter(){ this.img_sample.on(Laya.Event.CLICK, this, this.onImgClick); Laya.loader.load("res/atlas/comp/skeleton.atlas"); //创建动画模板 this.templet = new Laya.Templet(); this.templet.on(Laya.Event.COMPLETE, this, this.parseComp...

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

99. 示例 骨骼动画换装 加不上点击事件 [ 87%]

...ale(0.5, 0.5); Laya.stage.addChild(mArmature); //mArmature.on(Event.LABEL, this, onEvent); mArmature.on(Event.STOPPED, this, completeHandler); mArmature.on(Event.CLICK, this, onChangeSkin); mArmature.showSkinByName(mSkinList[0]); play(); //changeSkin(); //Laya.timer.loop(1000, this, changeSkin); } 2...

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

100. spine 播放错乱 [ 87%]

....SpineSkeleton; index = 0; private startFun(): void { //创建动画模板 this.templet = new Laya.SpineTemplet(); this.templet.loadAni("spine/10101001.json"); this.templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.templet.on(Laya.Event.ERROR, this, this.onError); } private parseComple...

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