大约有 1,215 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0090 秒)
Laya_社区(675) Laya3.0_api(153) laya_api(104) Laya2.0_api(96) Laya2.0_文档(63) Laya2.0_示例(44) Laya_示例(42) Laya3.0_文档(38)
layaair2.0)请问js的Laya.Event.FRAME怎么用,看api中有,但写了不执行。 Laya.stage.on(Laya.Event.FRAME,this.onEnterFrame); onEnterFrame() { t++; console.log("t="+t); } 希望每帧 t+1.然后显示 2018-11-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...
来源: Laya_社区 发布时间: 20181107
LayaAir引擎 事件派发求解 如图2 ;23行派发事件“event_closeThis”,没有问题;如果是24行派发“click”,就报图1 ,why? 附件 : --> 2017-07-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...
来源: Laya_社区 发布时间: 20170715
...import laya.display.Stage; import laya.ui.Label; import laya.events.Event; import laya.utils.Browser; import laya.utils.Timer; import laya.display.Sprite; import laya.net.Loader; import laya.ui.TextArea; import laya.resource.Texture; imp...
来源: Laya_社区 发布时间: 20170921
...ve addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListener isAncestorOf off offAll offAllCaller on on...
来源: Laya3.0_api 发布时间: 20231115
loader.create加载.lh文件,如果文件不存在,也不会受到Event.Error事件 如题 2017-07-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 demibug 赞同来自: 按照例子里面: // 侦听加载...
来源: Laya_社区 发布时间: 20170711
...的话,在什么情况下移除比较好呢? 给界面添加一个Event.REMOVED事件,在这里面移除吗? 感谢解答! 2017-05-13 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 jay1298 相关问题 两个对象new了...
来源: Laya_社区 发布时间: 20170511
...er = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var Event = Laya.Event; var compassImgPath = "../../res/inputDevice/kd.png"; var compassImg; var degreesText; var directionIndicator; var firstTime = true; (function() { Laya.init(700, 1024, WebGL); Laya.stage.scaleMode = Stage.S...
来源: Laya_示例 发布时间: 20251130
...点击区域不生效了 package { import laya.display.Sprite; import laya.events.Event; import laya.renders.Render; public class MoveTest { public function MoveTest() { Laya.init(600,600); var sp:Sprite = new Sprite(); sp.autoSize=true; sp.graphics.drawRect(0,0,100,100,"#ff0000"); sp.on(Event.CLICK...
来源: Laya_社区 发布时间: 20171226
...个按钮,confirm, cancel, 在InputTxtDialog 类里面cancel_btn.on(Event.CLICK, this, this.onCancel));没有反映,但是在调用InputTxtDialog的地方InputTxtDialog.cancel_btn.on(Event.CLICK, this, this.onCancel));是没有问题的,同样的代码,粘出来就行,在里面就不...
来源: Laya_社区 发布时间: 20180907
...%3B alert("url=" + url); var req = new laya.net.HttpRequest(); req.on(laya.events.Event.COMPLETE, null, cb_onSuccess); req.on(laya.events.Event.ERROR, null, cb_onFail); req.send(url); } function cb_onSuccess(response) { alert("response=" + response); // 成功输出:{"ret":1478136071} } function c...
来源: Laya_社区 发布时间: 20161103