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

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

161. socket通讯返回数据 [ 76%]

...接 this.socket.connectByUrl("ws://localhost:8899"); this.socket.on(Laya.Event.OPEN, this, this.openHandler); this.socket.on(Laya.Event.MESSAGE, this, this.receiveHandler); this.socket.on(Laya.Event.CLOSE, this, this.closeHandler); this.socket.on(Laya.Event.ERROR, this, this.errorHandler); // this.s...

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

162. 鼠标事件能否在有图形的区域感应,特别是子项坐标为负数时(已经找到问题) [ 76%]

...(已经找到问题) package { import laya.display.Sprite; import laya.events.Event; public class MainUi extends Sprite { private var testPan:Sprite; public function MainUi() { super(); this.graphics.drawRect(0,0,500,500,"#fff0cc"); testPan = new Sprite(); testPan.name = "testPan"; this.addChild...

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

163. sound manager在MOUSE_OVER事件中无法播放 [ 76%]

...Stage = Laya.Stage;     import Text = Laya.Text;     import Event = Laya.Event;     import SoundManager = Laya.SoundManager;     import Browser = Laya.Browser;     import Handler = Laya.Handler;     import WebGL = Laya.WebGL;      export class Sound...

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

164. 关于下拉列表的选择触发 [ 76%]

...ia1.loading_desc.text = "可在小秘境挂机获取" dia1.confirm.on(Laya.Event.MOUSE_UP, this, dai1, [dia1]) dia1.popup() // this.big_map.selectedIndex = 0 } } } 两个列表,手动选择会触发,没有问题,但如果在下面加一个修改下拉数据的 this.small_map.labels = “1,2...

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

165. 关于下拉列表的选择触发 [ 75%]

...ia1.loading_desc.text = "可在小秘境挂机获取" dia1.confirm.on(Laya.Event.MOUSE_UP, this, dai1, [dia1]) dia1.popup() // this.big_map.selectedIndex = 0 } } } 两个列表,手动选择会触发,没有问题,但如果在下面加一个修改下拉数据的 this.small_map.labels = “1,2...

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

166. 关于3d场景上Button点击事件顺序问题 [ 75%]

...按钮button。 2,在场景中加入了鼠标点击事件  Laya.stage.on(Event.MOUSE_DOWN,this,sceneClick);   private function sceneClick():void {     trace("scene clicked"); }   3,在button上添加按钮功能 button.on(Event.CLICK,this,onBtn); private function onBtn(e:Event):void {     e....

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

167. Sprite-旋转缩放 [ 75%]

...dule laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Sprite_RoateAndScale { private ape: Sprite; private scaleDelta: number = 0; constructor() { // 不支持WebGL时自动切换至Canvas ...

来源: Laya2.0_示例 发布时间: 20240930

168. 如何能监听到TouchStart和TouchEnd事件 [ 75%]

...链接 提交 2 个回复 189*****192 赞同来自: Sean8023 Laya.stage.on(Event.MOUSE_UP, this, onApeRelease); Laya.stage.on(Event.MOUSE_DOWN, this, onApeRelease); 通过 Event  类型 监听动作  class Event {         /** 一个空的 Event 对象。用于事件派发中转使用。*/ ...

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

169. 关于下拉列表 [ 75%]

...ia1.loading_desc.text = "可在小秘境挂机获取" dia1.confirm.on(Laya.Event.MOUSE_UP, this, dai1, [dia1]) dia1.popup() // this.big_map.selectedIndex = 0 } } } 然后我用 this.small_map.labels = “1,2,3,4”来更改下拉数据,只要一更新数据,上面就自动触发,那个...

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

170. js socket 连接不上 [ 75%]

...03:8888"); // this.socket.connect("10.10.1.103",8888); this.socket.on(Laya.Event.OPEN, this, openHandler); //建立连接 this.socket.on(Laya.Event.MESSAGE, this, receiveHandler); //接收到数据触发函数 this.socket.on(Laya.Event.CLOSE, this, closeHandler); //关闭事件 this.socket.on(Laya.E...

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