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

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

211. 有没有SoundChannel的示例? [ 58%]

...nnel = new SoundChannel(); SoundManager.addChannel(channel); _btn.on(Event.CLICK, this, soundClick); function soundClick(evt:Event){ alert("channel.isStoped:"+channel.isStoped); if (channel.isStoped){ channel.play(); }else{ channel.stop(); } } channel.isStoped输出是:undefined 2017-01-16 添加...

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

212. 如何往TiledMap格子内追加精灵 [ 58%]

...no) * 99.5, 73); flower.mouseEnabled=true; flower.alpha=1; flower.on(Event.CLICK,this,function() { flower.scaleX=1.1; flower.scaleY=1.1; Laya.timer.once(100, this,function() { flower.scaleX=1; flower.scaleY=1; alert("My Name is Bear" + no); return; }) }); mallLayer._childs[0].addChild(flower); } 201...

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

213. 摄像机捕捉目标(ActionScript-3D基础(AS3)-LayaAir3D之Camera) [ 58%]

...or3(0, 1, 0); ``` ```typescript //点击事件 changeActionButton.on(Event.CLICK, this, function():void{ index++; if (index % 3 === 1 ){ //摄像机捕捉模型目标 camera.transform.lookAt(box.transform.position, _up); } else if (index % 3 === 2){ //摄像机捕捉模型目标 camera.transform.loo...

来源: Laya2.0_文档 发布时间: 20210714

214. 微信飞机大战报错 [ 58%]

...         GameInfo.super(this);         this.pauseBtn.on(Laya.Event.CLICK, this, this.onPauseBtnClick);         this.reset();     }     Laya.class(GameInfo, "GameInfo", _super);     var _proto = GameInfo.prototype;     _proto.reset = function(){         this.infoLabel.text = "...

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

215. 用JS原生态window.location.href跳转 [ 58%]

...00,100,"#FFFF00"); Laya.stage.addChild(sp); sp.size(1000,100); sp.on(Event.CLICK,this,onClick); } private function onClick():void { Browser.window.location.href="https://www.baidu.com"; } 2016-12-15 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 ...

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

216. 摄像机捕捉目标(JavaScript-3D基础(JS)-LayaAir3D之Camera) [ 58%]

...0); ``` ```typescript //点击事件 this.changeActionButton.on(Laya.Event.CLICK, this, function(){ this.index++; if (this.index % 3 === 1 ){ //摄像机捕捉模型目标 this.camera.transform.lookAt(this.box.transform.position, this._up); } else if (this.index % 3 === 2){ //摄像机捕捉模型...

来源: Laya2.0_文档 发布时间: 20210715

217. 摄像机捕捉目标(TypeScript-3D基础(TS)-LayaAir3D之Camera) [ 58%]

...0); ``` ```typescript //点击事件 this.changeActionButton.on(Laya.Event.CLICK, this, function(){ this.index++; if (this.index % 3 === 1 ){ //摄像机捕捉模型目标 this.camera.transform.lookAt(this.box.transform.position, this._up); } else if (this.index % 3 === 2){ //摄像机捕捉模型...

来源: Laya2.0_文档 发布时间: 20210715

218. addchild后,怎么去引用? [ 58%]

....ani"); lose1.x=150; lose1.y=400; lose1.size(100,300); lose1.on(Laya.Event.CLICK,this.listP,this.play1); lose1.name="lose1"; this.listP.addChild(lose1); play1():void { console.log("111"); this.lose1.play(); //this._childs[5].play(); } 2017-10-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...

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

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

...微博 QZONE 微信 之肖 赞同来自: 试试this.vertify1.on(Laya.Event.CLICK,this,this._onInputVerify,[1) 2022-02-22 0 1 分享 微博 QZONE 微信 凱文 赞同来自: 幫推個幫推個 2022-03-01 0 0 分享 微博 QZONE 微信 Laya_Yan 赞同来自: 提供示例看一下 2022-03-01 0 0 分享...

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

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

...00; txt.height = 100; txt.x = 200; txt.y = 100; txt.fontSize = 50; txt.on("click", this, onFunc); Laya.stage.addChild(txt); } private function onFunc(e:Event):void { var arr:Array = e.touches; console.log("e.touchId="+e.touchId); console.log("arr[0]"+arr[0]); } } }  输出为:       不明白t...

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