大约有 441 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0049 秒)
Laya_社区(263) Laya2.0_api(59) laya_api(55) Laya2.0_文档(21) Laya3.0_文档(16) Laya2.0_示例(15) Laya_示例(9) Laya3.0_api(3)
...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
...300, 60, 60, Laya.Handler.create(this, function(){ ape.on(Laya.Event.CLICK, this, function(){ console.log(111) }) }));使用这段代码加载了一个60x60大小的图片(下图中骑马的那个人物),并且在加载完成的回调给这个图片添加点击事...
来源: Laya_社区 发布时间: 20180609
...d(ListDemoView); var btn = ListDemoView.getChildByName("startbtn"); btn.on(Event.CLICK, this, clickHandler); 这样不行 2018-05-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 181*****859 赞同来自: 已解...
来源: Laya_社区 发布时间: 20180524
...关 社区、文档、API的全文搜索功能不太好用 有没有Laya.Event.CLICK的相关说明文档 求HTTP相关的文档或者例子谢谢了 TextArea 相关问题: vScrollBar的scrollSize量没有效果 及 文本不可编辑 分享:List相关(Item增删功能) 问题状态 最新活...
来源: Laya_社区 发布时间: 20170922
...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
...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
...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); }); ``` (图1)
来源: Laya2.0_文档 发布时间: 20210715
...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); }); ``` (图1)
来源: Laya2.0_文档 发布时间: 20210715
...("../../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
...,请参考以下代码 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