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

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

311. 缓动-缓动函数演示 [ 76%]

... function ListItemRender() { var label = null; ListItemRender.__super.call(this); this.size(100, 20); label = new Label(); label.fontSize = 12; label.color = "#FFFFFF"; this.addChild(label); this.setLabel = function(value) { label.text = value; } } Laya.class(ListItemRender, "ListItemRender", Box); ...

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

312. 分享:简单聊天室 [ 76%]

...</span><br/>"; // 添加超链接跳转 my_html.on(Event.LINK,this,onLink); // 点击btn1 send_btn.on(Event.CLICK,this,onSendClick); // 点击btn2 send_btn1.on(Event.CLICK,this,onSendClick1); // enter键发送默认字体或输入框内字体 Laya.stage.on(Event.KEY_DOWN,this,onKeyDown);...

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

313. 苹果上架问题, [ 76%]

....5.2 and section 3.3.2 of the Apple Developer Program License Agreement. This code, combined with a remote resource, can facilitate significant changes to your app’s behavior compared to when it was initially reviewed for the App Store. While you may not be using this functionality currently, it...

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

314. 如何取消监听 [ 76%]

...在设置监听是如下写的: class a {_EventMgr.on("xxx", () => {this.xxx();}); } _EventMgr是一个全局的监听类,在class a中设置监听并处理,但我删除这个a的实例并重新创建,发现触发事件时,处理函数会调用2次,再删除在创建a,会触发处...

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

315. timeline 类动作节点回调 [ 76%]

..., alpha:1},2000,null,0); timeLine.play(0,true); timeLine.on(Event.COMPLETE,this,this.onComplete); timeLine.on(Event.LABEL, this, this.onLabel); } function onComplete() { console.log("timeLine complete!!!!"); } function onLabel(label) { console.log("LabelName:" + label); }少年 没仔细看官方的...

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

316. TimeLine调用destroy报错&执行完成后回到起点 [ 76%]

..., alpha:1},2000,null,0); timeLine.play(0,true); timeLine.on(Event.COMPLETE,this,this.onComplete); timeLine.on(Event.LABEL, this, this.onLabel); } private function onComplete():void { trace("timeLine complete!!!!"); timeLine.pause(); timeLine.destroy(); // Laya.timer.frameOnce(10, this, dispose); } ...

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

317. 代码创建精灵监听不到事件? [ 75%]

...data: StorageRoom.map_storageData[0][0],tag:0}; box.on(Laya.Event.MOUSE_UP,this,this.onclick,[arr]);   var _proto = StorageUILayer.prototype;   _proto.onclick = function(params){ console.log("--------------------------------hhhhhhhhhhh- "); }   ----------------------------------------------------...

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

318. 请问下键盘事件的监听只能用stage么?其他对象监听不起作用,谢谢 [ 75%]

...象监听不起作用,谢谢 Laya.stage.on(laya.events.Event.KEY_DOWN, this, this.onkeyDown);使用舞台监听有效,但是如果使用 var sp = new Sprite(); sp.width = 720; sp.height = 1280 Laya.stage.addChild(sp) sp.on(laya.events.Event.KEY_DOWN, this, this.onkeyDown); 就不能监听到键...

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

319. 全屏请求问题!!!求救啊!!求救啊!! [ 75%]

全屏请求问题!!!求救啊!!求救啊!! this.fullScreen_btn.on(Laya.Event.CLICK, this, this.onFullScreen, null); _proto.onFullScreen = function () { toggleFullscreen(); };       function launchIntoFullscreen(element) { var element = document.documentElement; if (element.reque...

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

320. 分享:为List组件下Item(Box)下的Button(或其他组件)进行监听! [ 75%]

...vents.Event; // 创建TestPageUI的子类 function TestUI() { TestUI.super(this); //list赋值,先获得一个数据源数组 var arr = ; for (var i = 0; i < 100; i++) { arr.push({label: "item " + i, clip: i % 9,btn:"btn"+i}); } //给list赋值更改list的显示 this.list.array = arr; //给lis...

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