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

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

1. 有关于HTMLDivElement文本布局的问题 [ 100%]

...问题 <font color="#50d337"><a name='keyword' href='#javascript' onClick='this.pic()'>恶魔</a><a name='keyword' href='#javascript' onClick='this.pic()'><font color="#65e2ff">力量</font></a>、<a name='keyword' href='#javascript' onClick='this.pic()'&...

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

2. 二次开发中:平台代码(android/ios)主动执行js脚本,在Laya1.0中生效,在Laya2.0中不生效 [ 94%]

...生效 laya中代码:export default class Test  {     public static  onClick():void{         alert("123456");     }     public static onClick1():void{            } } 原生中代码:ConchJNI.RunJS("Test.onClick()"); 原生中报错:ReferenceError: Test is not defined   附...

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

3. 分享:改变图片皮肤,保持图片原样宽高显示 [ 91%]

...kin="logo.png"; Laya.stage.addChild(image); Laya.stage.on(Event.CLICK,this,onClick); } private function onClick():void { image.skin="bg.jpg"; } } }方法2:使用graphics.drawTexture的方式】 package { import laya.display.Sprite; import laya.events.Event; import laya.net.Loader; import laya.reso...

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

4. sprite 设置为静态变量后,无法从舞台移除 [ 89%]

..."background.jpg"); Laya.stage.addChild(sp); Laya.stage.on(Event.CLICK,this,onClick); function onClick():void { // TODO Auto Generated method stub Laya.stage.off(Event.CLICK,this,onClick); Laya.stage.removeChild(sp); Loader.clearRes("background.jpg"); sp.destroy(); } } } } 2016-09-05 0 0 分享 微...

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

5. 3D场景跳转到2D场景问题 [ 81%]

...Once=this.getChildByName("btnOnce"); btnOnce.on(Laya.Event.CLICK,this,this.onClick); } onClick(e){ this.removeSelf(); let gameScene=new GameScene(); Laya.stage.addChild(gameScene); } } 求大佬教学 2019-09-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请...

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

6. 引擎示例中的新手引导自己写了一次,不知道为什么无法实现点击。 [ 80%]

...g = new Sprite(); stage.addChild(bg); bg.texture = e; bg.on("click", this, onClick); var guideContainer = new Sprite(); stage.addChild(guideContainer); guideContainer.mouseEnabled = true; guideContainer.cacheAs = "bitmap"; var hitArea = new HitArea(); hitArea.hit.drawRect(0, 0, width, height, "#0000...

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

7. laya 为什么不能弹出文件选择框 [ 78%]

... 15:26 浏览: 2455 关注: 3 人 soren • 2018-09-14 15:35 哦 那改成 onclick 看下 click 是jQuery的写法 喵了个咪 • 2018-09-14 15:52 onclick是设置点击调用的函数,现在问题是代码里click已经触发了点击(点击函数执行了),但是不会弹出选择框 喵...

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

8. 按钮失效,同UI里的一个图片超链接点击后再返回,出现按钮失效。 [ 76%]

...Left.on(Laya.Event.CLICK,null,function(){ //TO GamePage2 console.log("left onclick"); Laya.stage.addChild(new GameView); });  //分享快乐 this.StartRight.on(Laya.Event.CLICK,null,function(){ //超链接 onLink(href); });  //天猫Logo this.img_TianMao.on(Laya.Event.CLICK,null,function(){ //超...

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

9. 分享:Panel下动态修改子容器宽高并刷新显示! [ 75%]

...(btnAdd); btnAdd.x=550; btnAdd.label='ADD1000'; btnAdd.on(Event.CLICK,this,onClick,[sp,panel]); } private function onClick(sp:Sprite,panel:Panel):void { trace('Add1000'); for(var i:int=0;i<1000;i++) { var button:Button=new Button('button-4.png'); button.label='button:'+i; sp.addChild(button); but...

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

10. 类似抠图、挖空效果的实现 [ 73%]

...      blue.size(500, 500);             blue.on("click", this, onClick);             Laya.stage.addChild(blue);                          //增加一个容器             box = new Sprite();             //设置容器为画布缓存       ...

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