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

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

701. 下来框ComboBox的change事件怎么绑定 [ 73%]

...相关的链接 提交 1 个回复 189*****192 赞同来自: box.on(Laya.Event.CHANGE,this,方法名称);    2017-10-24 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 qq1297404644 相关问题 分享:自定义事件派发与侦听(...

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

702. Socket能连接到服务器,客户端发请求也能收到服务端的数据,但是服务端主动推送数据,客户端就是收不到数据? [ 73%]

...Scripts.Core { import laya.net.Socket; import laya.utils.Byte; import laya.events.Event; import Scripts.Core.MsgManger; import Scripts.Core.IHandler; import Scripts.Core.TipsManager; import laya.utils.Browser; /** * ... * @author */ public class Socketmanger{ private static var _I:Socketmanger; publ...

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

703. textArea滚动条异常问题 [ 73%]

...用ide设置的 txtInput.wordWrap = true;//使用ide设置的 txtInput.on(Event.INPUT, this, onInputChange); private function reset(e:Event = null):void { clickStar = 0; txtInput.text = ""; txtLast.text = "剩余输入:" + WelfareNoticeMgr.MAX_WARD + "字"; } private ...

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

704. laya.ui.CheckBox [ 73%]

...ll Classes | Index | Frames No Frames CheckBoxProperties | Methods | Events Packagelaya.uiClasspublic class CheckBoxInheritanceCheckBox Button Component Sprite Node EventDispatcher Object CheckBox 组件显示一个小方框,该方框内可以有选中标记。 CheckBox 组件还可以显...

来源: laya_api 发布时间: 20170929

705. LayaNative WebSocket无法触发onclose [ 73%]

...yaNative2.6版本中,对Laya.Socket对象调用close方法后不会派发Event.CLOSE事件 2020-05-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什么被折叠? 0 个回复被折叠 要回复问题请先...

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

706. 脚本的事件(ActionScript-3D基础(AS3)-LayaAir3D的脚本使用) [ 73%]

...oid {} /** * 键盘按下时执行 */ public override function onKeyDown(e:Event):void {} /** * 键盘产生一个字符时执行 */ public override function onKeyPress(e:Event):void {} /** * 键盘抬起时执行 */ public override function onKeyUp(e:Event):void {} /** * 每帧更新时执行 */ pu...

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

707. 打飞机点开始游戏加载飞机动画不出来,点重新开始,才出来,新手求助! [ 73%]

...出来 function onLoaded() { start = new GameStartUI(); start.btn_start.on(Event.MOUSE_UP,this,gameInit) Laya.stage.addChild(start); } function gameInit() { map = new GameBgUI(); Laya.stage.addChild(map); play = new GamPlayUI(); Laya.stage.addChild(play); hero = new Hero("hero", 25) hero.pos(100,200...

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

708. 取消监听鼠标移动事件,取消不了 [ 73%]

取消监听鼠标移动事件,取消不了 Laya.stage.off(Laya.Event.MOUSE_MOVE,this,null); 第三个参数是函数,不能为null吗?是不是和on绑定时的同一个函数,如果on里面用匿名函数,off第三个参数怎么写? 2018-06-23 添加评论 免费帖 --> 分享 微博...

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

709. 手机调试时http请求错误,返回Request failed Status:0 [ 73%]

...段: let hr = new Laya.HttpRequest(); hr.http.timeout = 5000; hr.on(Laya.Event.PROGRESS, this, this.onHttpRequestProgress); hr.once(Laya.Event.COMPLETE, this, (response)=>{ UIFactory.closeWaitBar(); this.onHttpRequestComplete(response); if(handleOk){ handleOk(response); } }); hr.once(Laya.Event...

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

710. 材质-BlinnPhong-反射贴图 [ 73%]

...nion(0.7071068, 0, 0, -0.7071067); teapot2.meshFilter.sharedMesh.once(Laya.Event.LOADED, this, function () { var material = teapot2.meshRender.material; //反射贴图 material.reflectTexture = textureCube; }); Laya.timer.frameLoop(1, this, function () { teapot1.transform.rotate(this.rotation, false...

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