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

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

221. 请问object层中添加的sprite怎么添加点击事件 [ 58%]

...wer.height = 100; flower.width = 100; flower.size(100,100); flower.on(Laya.Event.CLICK,this,function() {    alert("My Name is Bear"); }); mallLayer.addChild(flower); mallLayer._showGridList.push(flower); 附件 : --> hxwlworld.zip 2018-07-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...

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

222. 使用loadImage加载一个图片后的点击事件 [ 58%]

...300, 60, 60, Laya.Handler.create(this, function(){         ape.on(Laya.Event.CLICK, this, function(){         console.log(111)     }) }));使用这段代码加载了一个60x60大小的图片(下图中骑马的那个人物),并且在加载完成的回调给这个图片添加点击事...

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

223. layaide建的ui里面的按钮怎么获取到呢?事件怎么添加呢? [ 58%]

...d(ListDemoView); var btn = ListDemoView.getChildByName("startbtn"); btn.on(Event.CLICK, this, clickHandler); 这样不行 2018-05-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 181*****859 赞同来自: 已解...

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

224. 这个社区人怎么那么少,相关新闻也很少 [ 58%]

...关 社区、文档、API的全文搜索功能不太好用 有没有Laya.Event.CLICK的相关说明文档 求HTTP相关的文档或者例子谢谢了 TextArea 相关问题: vScrollBar的scrollSize量没有效果 及 文本不可编辑 分享:List相关(Item增删功能) 问题状态 最新活...

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

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

...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

226. laya如何用audio播放音频? [ 58%]

...TMLAudioElement; constructor(){     super();     this.btn_play.on(Laya.Event.CLICK, this, this.onPlay);     this.elentAutio = <HTMLAudioElement>document.createElement('audio');     this.elentAutio.src="res/10.mp3"; } onPlay():void{     this.elentAutio.play(); }   由于要播放一...

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

227. Sprite3D的Layer(JavaScript-3D基础(JS)-LayaAir3D之精灵) [ 58%]

...4; ...... //切换图层按钮事件监听 this.changeActionButton.on(Laya.Event.CLICK, this, function():void { this.camera.removeAllLayers(); this.layerIndex ++; this.camera.addLayer(this.layerIndex%4 +1); this.camera.addLayer(5); }); ``` ![](img/1.gif)(图1)

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

228. Sprite3D的Layer(TypeScript-3D基础(TS)-LayaAir3D之精灵) [ 58%]

...4; ...... //切换图层按钮事件监听 this.changeActionButton.on(Laya.Event.CLICK, this, function():void { this.camera.removeAllLayers(); this.layerIndex ++; this.camera.addLayer(this.layerIndex%4 +1); this.camera.addLayer(5); }); ``` ![](img/1.gif)(图1)

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

229. 动画-旧版骨骼动画 [ 58%]

...("../../res/threeDimen/skinModel/Zombie/old/Zombie.lh")); zombie.once(Laya.Event.HIERARCHY_LOADED, this, function () { zombie.transform.rotation = new Laya.Quaternion(-0.7071068, 0, 0, -0.7071068); zombie.transform.position = new Laya.Vector3(0.3, 0, 0); addSkinComponent(zombie); loadUI(); }); var s...

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

230. 使用webgl之后toDataUrl返回黑色的图像 [ 58%]

...,请参考以下代码 package { import laya.display.Sprite; import laya.events.Event; import laya.utils.Browser; import laya.utils.Stat; import laya.webgl.WebGL; public class LayaAirDemo { private var sp:Sprite ; public function LayaAirDemo() { //初始化引擎 Laya.init(Browser.width, Browser.h...

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