大约有 393 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0044 秒)
Laya_社区(221) Laya2.0_api(57) laya_api(53) Laya2.0_文档(24) Laya2.0_示例(14) Laya3.0_文档(13) Laya_示例(9) Laya3.0_api(2)
...添加一个sprite,给sprite添加一个点击事件,this.hitimg.on(Laya.Event.CLICK,this,this.onStart); onStart: _proto.onStart = function(){ console.log(111111122222); $("#fileInput").trigger('click'); } 可以打印数字,但是触发不了input控件。 <input id="fileInput" type="fil...
来源: Laya_社区 发布时间: 20170626
...问题!!!求救啊!!求救啊!! this.fullScreen_btn.on(Laya.Event.CLICK, this, this.onFullScreen, null); _proto.onFullScreen = function () { toggleFullscreen(); }; function launchIntoFullscreen(element) { var element = document.documentElement; if (element.requestFullscreen)...
来源: Laya_社区 发布时间: 20190715
...sprite 如何移除点击事件 我对stage添加click事件后(通过on(Event.click)),想移除掉这个事件,用mouseEnable=false,无效 2018-01-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 qian ...
来源: Laya_社区 发布时间: 20180131
... Laya.stage.bgColor = "#ffffff"; Laya.stage.on(Event.CLICK, this, play); } function play():void { Laya.timer.loop(5000, this, function():void { playDragonBonesAnimation("BigAward/Bi...
来源: Laya_社区 发布时间: 20170406
...{ import laya.ani.bone.Skeleton; import laya.ani.bone.Templet; import laya.events.Event; import laya.webgl.WebGL; public class DragonDemo { private var mFactory:Templet; private var mArmature:Skeleton; private var index:int;//帧频 private var time:Number; public function DragonDemo() { Laya.init(8...
来源: Laya_社区 发布时间: 20170509
... list.mouseHandler=new Handler(this,onMouse); private function onMouse(e:Event,index:Number):void { // TODO Auto Generated method stub if(e.type==Event.CLICK) { trace("click"); } } 2016-12-02 3 2 分享 微博 QZONE 微信 sunkehappy 赞同来自: @cuixueying 感谢提供方案,不过我还是想...
来源: Laya_社区 发布时间: 20161202
...按钮,会显示下一层界面,同时隐藏自己 this.btnFirst.on(Laya.Event.CLICK, this, this.change, [0]); //点击上面一层的按钮,会隐藏该层,同时显示上一层 this.btnChange.on(Laya.Event.CLICK, this, this.change, [1]); //初始时默认上面一层不可见 this.layoutSeco...
来源: Laya_社区 发布时间: 20180810
...right.bold = true; copyright.pos(20, g_stat_heiht - 35); copyright.on(Laya.Event.CLICK, this, function() { window.location.href = "http://www.coderluan.com"; }); Laya.stage.addChild(copyright); 3.设置积分板和开始菜单 右下弄了个“点击开始游戏”的文本,点击只会游戏开...
来源: Laya_社区 发布时间: 20160623
...ight; } } } BUG2:package ui.test { import laya.display.Sprite; import laya.events.Event; public class MyBox1 extends Sprite { private var _sprite:Sprite; public function MyBox1() { super(); _sprite=new Sprite(); //这里明明传入了尺寸,为什么graphics没有宽高信息 _sprite.graphics.dra...
来源: Laya_社区 发布时间: 20170124
...HitAllInfo.length;这个已经获取到了。射线获取的 //是不是我Event.COMPLETE写错了?应该怎么用求教啊。。。。。 Laya.stage.on(Laya.Event.CLICK, this, function () { for (var i = 0; i < _outHitAllInfo.length; i++) { ...
来源: Laya_社区 发布时间: 20170927