大约有 417 项符合查询结果, 库内数据总量为 30,784 项。 (搜索耗时: 0.0050 秒)
Laya_社区(291) Laya2.0_示例(32) Laya_示例(27) Laya2.0_文档(23) laya_api(14) Laya2.0_api(13) Laya3.0_文档(13) Laya3.0_api(4)
...Button; var my_clip:Clip=cell.getChildByName("my_clip") as Clip; my_btn.on(Event.CLICK,this,onBtnClick,["my_btn"]); my_clip.on(Event.CLICK,this,onClipClick,["my_clip"]); } private function onBtnClick(name:String):void { // TODO Auto Generated method stub trace(name); } private function onClipClick(n...
来源: Laya_社区 发布时间: 20161030
... var Browser = laya.utils.Browser; var Stat = laya.utils.Stat; var Event = laya.events.Event; var Sprite = laya.display.Sprite; Laya.init(800, 1030); Stat.show(0,0); var drawLayer = new Sprite(); Laya.stage.addChild(drawLayer); drawLayer.width = 800; drawLayer.height = 1030; drawLayer.o...
来源: Laya_社区 发布时间: 20160725
...ya.stage.bgColor = "#232628"; Stat.show(); this.setup(); } setup() { const Event = Laya.Event; var gap = 10; //创建一个Sprite充当音效播放按钮 let soundButton = this.createButton("播放音效"); soundButton.x = (Laya.stage.width - soundButton.width * 2 + gap) / 2; soundButton.y = (Laya.s...
来源: Laya2.0_示例 发布时间: 20241123
...10_beta/resources/app/out/vs/layaEditor/h5/layabuilder.max.js:38985:25) at EventHandler.__proto.run (file:///E:/LayaAirIDE_1.7.10_beta/resources/app/out/vs/layaEditor/h5/laya.js:649:27) at TabEx.__proto.event (file:///E:/LayaAirIDE_1.7.10_beta/resources/app/out/vs/layaEditor/h5/laya.js:442:53) at Ta...
来源: Laya_社区 发布时间: 20170908
...){ var mc:MovieClip = new MovieClip; mc.load(ul); this.addChild(mc); mc.on(Event.COMPLETE,this,stopNowMC) } } private function stopNowMC(e:Event):void{ trace(e.currentTarget); trace(e.target); MovieClip(e.currentTarget).gotoAndStop(MovieClip(e.target).count-1); } AS3代码是这样的,但是COMPLE...
来源: Laya_社区 发布时间: 20161221
...10_beta/resources/app/out/vs/layaEditor/h5/layabuilder.max.js:38985:25) at EventHandler.__proto.run (file:///E:/LayaAirIDE_1.7.10_beta/resources/app/out/vs/layaEditor/h5/laya.js:649:27) at TabEx.__proto.event (file:///E:/LayaAirIDE_1.7.10_beta/resources/app/out/vs/layaEditor/h5/laya.js:442:53) at Ta...
来源: Laya_社区 发布时间: 20170908
...错 报错提示是:TypeError: this.method.apply is not a function at EventHandler.__proto.run (file:///E:/LayaWorkspace/javaScriptLaya/bin/libs/laya.core.js:697:26) at LoaderManager.__proto.event (file:///E:/LayaWorkspace/javaScriptLaya/bin/libs/laya.core.js:483:52) at ResInfo.onLoaded (file:/...
来源: Laya_社区 发布时间: 20180104
Event类中的target属性IDE返回值为什么和文档不一样 文档上写着Event是 target : Sprite 事件目标触发对象。 IDE中 Event.target: EventTarget 是我哪弄错了吗? 2017-10-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...
来源: Laya_社区 发布时间: 20171015
...file:///E:/LayaWorkspace/javaScriptLaya/bin/libs/laya.core.js:12723:28) at EventHandler.__proto.runWith (file:///E:/LayaWorkspace/javaScriptLaya/bin/libs/laya.core.js:713:27) at ResInfo.__proto.event (file:///E:/LayaWorkspace/javaScriptLaya/bin/libs/laya.core.js:483:28) at LoaderManager.__proto._end...
来源: Laya_社区 发布时间: 20171226
...resources\app\node_modules\layacmd\layacmd-publish.js:141:21) at emitNone (events.js:86:13) at LayaProjectCompiler.emit (events.js:185:7) at LayaProjectCompiler.compile (E:\Laya\LayaAirIDE_beta\resources\app\node_modules\layacmd\compile_project.js:38:9) at ChildProcess.compileProject (E:\Laya\LayaAi...
来源: Laya_社区 发布时间: 20180509