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

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

341. Dialog限制拖动区域有什么方法 [ 57%]

... Laya_Aaron 赞同来自: LT dialog类  private function _onMouseDown(e:Event):void {             var point:Point = this.getMousePoint();             if (_dragArea.contains(point.x, point.y)) this.startDrag();             else this.stopDrag();         } ...

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

342. layanative问题 [ 57%]

...图集加载问题 关于适配采用showAll后留白部分的颜色问题 event自定义事件的问题 关于apk打包动画卡的问题 Panel中的东西左右拖动好象有问题 laya1.7.9beta版 我这样载入场景问题出现在哪呢?? 问题状态 最新活动: 2017-07-06 22:07 浏览...

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

343. 如何让一个点击事件执行完立即移除 [ 57%]

...何让一个点击事件执行完立即移除 Laya.sg_paiui.zybut2.on(Laya.Event.CLICK,this,function(th,e){                                 Laya.sg_paiui.zybut1.visible = false; }) 比如说这个事件 如何让他执行完立即移除 2017-10-11 添加评论 免费帖 --> ...

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

344. httpRequest send返回Request failed Status:0 [ 57%]

...quest(); var url = "http://thirdqq.qlogo.cn/g%3Fb% ... 3B%3B xhr.once(Laya.Event.COMPLETE, this, this.completeHandler, [url, 1]); xhr.once(Laya.Event.ERROR, this, this.errorHandler); xhr.send(url, "", "get", "arraybuffer"); } } GameMain.prototype.completeHandler = function (URL, id, data) { // priva...

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

345. 用最新版本的IDE开发,用AS语言开发,用HttpRequest加载图片报错,用JS语言开发却可以加载 [ 57%]

...p:Sprite = new Sprite(); var xhr:HttpRequest = new HttpRequest(); xhr.once(Event.COMPLETE,this,completeHandler); xhr.once(Event.ERROR,this,errorHandler); xhr.send("res/monkey2.png","","get","arraybuffer"); } private function completeHandler(data:Object):void { //加载完成返回的data是arraybuff...

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

346. 2.x引擎项目升级指南 · LayaAir3.0文档 · LAYABOX [ 57%]

...Laya.Script命名函数方式处理输入。例如: this.aNode.on(Laya.Event.CLICK, ()=> { console.log("clicked"); }); class MyScript extends Laya.Script { //脚本事件 onMouseClick(e:Event) { console.log("clicked"); } } aNode.addComponent(MyScript); 以上两种方式是等价的,且在纯...

来源: Laya3.0_文档 发布时间: 20230406

347. image组件加载完成调度事件没反应? [ 57%]

...调度事件没反应? var dialog:Image = new Image(picAy[i]); dialog.on(Event.LOADED,this,onLoaded) private function onLoaded(e:*=null):void{ trace(2) } 这代码有什么问题?不调度onLoaded函数,图片显示正常 2016-10-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...

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

348. 3D场景跳转到2D场景问题 [ 56%]

... } onAwake(){ let btnOnce=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

349. 鼠标脚本(ActionScript-3D基础(AS3)-LayaAir3D之鼠标交互) [ 56%]

...(Collider) //当被鼠标点击 override public function onMouseDown(e:Event):void{ //trace("点击到了我box",owner.name); //从父容器销毁我自己 meshsp.removeSelf(); } } ``` > **主类**: ```typescript //给四个猴子添加脚本 staticLayaMonkey.addComponent(MouseScript); layaMonke...

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

350. Laya中的宏编译要怎么用啊 [ 56%]

...lash.display.StageAlign; import flash.display.StageScaleMode; import flash.events.Event; public class Main extends Sprite { public function Main():void { if (stage) init(); else addEventListener(Event.ADDED_TO_STAGE, init); } private function init(e:Event = null):void { removeEventListener(Event.ADD...

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