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

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

31. 能不能发一个socket的具体实例给我 [ 77%]

...接,但是客户端就是无法触发_open回调,我尝试监听Laya.Event.OPEN事件,也无法触发回调。 我估计还是我服务器代码问题,有没有大神能给我写一个简单的服务器代码,能让客户端触发到_open回调就行 2017-06-08 添加评论 免费帖 --> ...

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

32. 微信小游戏发布问题 [ 77%]

...resources\app\node_modules\layacmd\layacmd-publish.js:141:21) at emitNone (events.js:86:13) at LayaProjectCompiler.emit (events.js:185:7) at LayaProjectCompiler.compile (E:\Laya\LayaAirIDE_beta\resources\app\node_modules\layacmd\compile_project.js:38:9) at ChildProcess.compileProject (E:\Laya\LayaAi...

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

33. Event.KEY_DOWN为空 [ 76%]

Event.KEY_DOWN为空 laya 用得少 社区搜了搜没有答案  不知道这么写 问题在哪里 Event.KEY_DOWN 值未定义 laya.events.Event.KEY_DOWN f12跳转有值  但是运行时laya 报错    附件 : --> 2020-07-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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

34. 获取的ui页面里下on事件无法触发 [ 75%]

...ameStartView = function () { GameStartView.super(this); this.Start.on(Laya.Event.CLICK, this, this.open); console.log(this.Start); GameStartView.prototype.open = function(){ console.log("Open is ok"); } }; Laya.class(GameStartView,"GameStartView", GameStartUI); 输出:Button {toggle: false, _bitma...

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

35. 网络和格式-Socket [ 73%]

...种开发语言、LayaAirIDE让项目开发更高效。(function() { var Event = Laya.Event; var Socket = Laya.Socket; var Byte = Laya.Byte; var socket; var output; (function() { Laya.init(550, 400); connect(); })(); function connect() { socket = new Socket(); //socket.connect("echo.websocket.org", ...

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

36. 使用 addChild 加载界面后,绑定事件报错 [ 73%]

...uctor() {         super();          this.btnStart.on(Laya.Event.CLICK, this, this.startGame);     }      startGame(): void {         //Laya.Scene.open("GameView.scene");         if (!Main.gameView) {             Main.gameView = new GameView();  ...

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

37. Laya.HttpRequest 没有调用回调方法? [ 72%]

...a.HttpRequest(); xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE,this,completeHandler); xhr.once(Event.ERROR,this,errorHandler); xhr.on(Event.PROGRESS,this,processHandler); xhr.send("https://www.baidu.com/","","get","text"); function processHandler(data){ console.log(data); ...

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

38. 网络和格式-Socket [ 71%]

...lor = "#232628"; this.connect(); } connect() { const Socket = Laya.Socket, Event = Laya.Event; socket = new Socket(); //socket.connect("echo.websocket.org", 80); socket.connectByUrl("ws://echo.websocket.org:80"); output = socket.output; socket.on(Event.OPEN, this, this.onSocketOpen); socket.on(Event...

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

39. laya.ui.DialogManager [ 71%]

...asses | Index | Frames No Frames DialogManagerProperties | Methods | Events Packagelaya.uiClasspublic class DialogManagerInheritanceDialogManager Sprite Node EventDispatcher Object DialogManager 对话框管理容器,所有的对话框都在该容器内,并且受管理器管理。 任意...

来源: laya_api 发布时间: 20170929

40. 我在dialog a上继续弹出dialog b 。需要关闭b的时候,a依然存在。怎么做? [ 71%]

...t; Here is DlgNote2"); this.closeEffect = null; this.closeBtn.on(Laya.Event.CLICK, this, this.toClose); //this.show(); } b的关闭方法: toClose():void{ //Laya.Scene.open("datiPage.scene"); this.close(); } a和b都是独立的ts类, export default class a extends ui.a {……} ...

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