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

大约有 374 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0058 秒)

101. 这样的panel请问如何实现比较好? [ 69%]

...按钮,会显示下一层界面,同时隐藏自己 this.btnFirst.on(Laya.Event.CLICK, this, this.change, [0]); //点击上面一层的按钮,会隐藏该层,同时显示上一层 this.btnChange.on(Laya.Event.CLICK, this, this.change, [1]); //初始时默认上面一层不可见 this.layoutSeco...

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

102. ui list 里面的元素不能点击两次 [ 69%]

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

103. LayaAir开发笔记(1)五十音图连连看 [ 69%]

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

104. 绘制图形的BUG [ 69%]

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

105. playByFrame动画监听问题,真不会了。就一个小问题。监听不到动画结束。。。 [ 68%]

...HitAllInfo.length;这个已经获取到了。射线获取的 //是不是我Event.COMPLETE写错了?应该怎么用求教啊。。。。。 Laya.stage.on(Laya.Event.CLICK, this, function () {                 for (var i = 0; i < _outHitAllInfo.length; i++) {                     ...

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

106. 无法触发浏览器文件上传框 [ 68%]

...te(this, () => { this.btn = this.createBtn(this.skin); this.btn.on(Laya.Event.CLICK, this, this.onClick); })); } /** * 创建btn */ private createBtn(skin: string): Laya.Button { let button = new Laya.Button(skin, '上传文件'); button.labelSize = 12; button.labelColors = '#000000,#000000,#0000...

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

107. 关于event中只读属性touches,问题,求解 [ 68%]

关于event中只读属性touches,问题,求解 主类: package { import laya.display.Text; import laya.events.Event; import laya.webgl.WebGL; public class DemoTouch { public function DemoTouch() { Laya.init(800, 600, WebGL); Laya.stage.bgColor = "#232628"; var txt:Text = new Text(); txt.text...

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

108. UI-RefreshList [ 68%]

...种开发语言、LayaAirIDE让项目开发更高效。Stage = Laya.Stage; Event = Laya.Event; Box = Laya.Box; List = Laya.List; Handler = Laya.Handler; WebGL = Laya.WebGL; Animation = Laya.Animation; Label = Laya.Label; Text = Laya.Text; Point = Laya.Point; Tween = Laya.Tween; TextArea = Laya.TextA...

来源: Laya2.0_示例 发布时间: 20240930

109. 请问UI之间的场景切换要怎么写 [ 68%]

...(_super){ function sg_sign(){ sg_sign.super(this); this.btn_wxsign.on(Laya.Event.CLICK,this,this.onWxSign); this.reset(); } Laya.class(sg_sign,"sg_sign",_super); var _proto = sg_sign.prototype; _proto.reset = function(){ Laya.SoundManager.playMusic('res/sound/sign_bgm.mp3',0); } _proto.onWxSign = fu...

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

110. TextInput 监听事件 Laya.Event.INPUT 事件在IOS 环境下没动作 [ 68%]

TextInput 监听事件 Laya.Event.INPUT 事件在IOS 环境下没动作 TextInput 监听事件 Laya.Event.INPUT 事件在IOS 环境下没动作 附件 : --> 2022-02-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 个回...

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