大约有 38 项符合查询结果, 库内数据总量为 30,972 项。 (搜索耗时: 0.0056 秒)
...问题 <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
...生效 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
...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
...2); //侦听点击事件,输出坐标信息 Laya.stage.on("click", this, onClick); Laya.stage.on("resize", this, onResize); })(); function onBoyClick(e) { //点击后小人会放大缩小 var boy = e.target; if (boy.scaleX === 1) { boy.scale(1.2, 1.2); } else { boy.scale(1, 1); } } function onTxtC...
来源: Laya_示例 发布时间: 20250418
.../侦听点击事件,输出坐标信息 Laya.stage.on("click", this, this.onClick); Laya.stage.on("resize", this, this.onResize); } onBoyClick(e) { //点击后小人会放大缩小 let boy = e.target; if (boy.scaleX === 1) { boy.scale(1.2, 1.2); } else { boy.scale(1, 1); } } onTxtClick(e) { //点...
来源: Laya2.0_示例 发布时间: 20250418
..."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
...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
...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
...hics.endFill(); addChild(sprite); sprite.addEventListener(MouseEvent.CLICK,onClick); function onClick(evt:MouseEvent):void { trace("------aaa---------"); } ``` **LayaAir引擎中正确的用法示例:** 实现方法一: ```java var sprite:Sprite = new Sprite(); sprite.graphics.drawRect(100,100,1...
来源: Laya2.0_文档 发布时间: 20191206
...hics.endFill(); addChild(sprite); sprite.addEventListener(MouseEvent.CLICK,onClick); function onClick(evt:MouseEvent):void { trace("------aaa---------"); } ``` **LayaAir引擎中正确的用法示例:** 实现方法一: ```java var sprite:Sprite = new Sprite(); sprite.graphics.drawRect(100,100,1...
来源: Laya2.0_文档 发布时间: 20210714