大约有 1,451 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0068 秒)
Laya_社区(932) Laya2.0_文档(177) Laya_示例(132) Laya2.0_示例(115) Laya3.0_api(61) Laya3.0_文档(32) laya_api(1) Laya2.0_api(1)
...() { super(); var iHtml: HTMLIframeElement = new HTMLIframeElement(); Laya.stage.addChild(iHtml); iHtml.href = "https://www.baidu.com/"; } } // 程序入口 Laya.init(600, 400); Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLo...
来源: Laya_社区 发布时间: 20171011
... Laya.init(1136, 640); Laya.stage.bgColor="#ffcccc"; SoundManager.playSound("GameSound/aa/bb.mp3",1,new Handler(this,soundComplete)); } privat...
来源: Laya_社区 发布时间: 20180314
...关的链接 提交 1 个回复 bpmf_d 赞同来自: // 失去焦点 Laya.stage.on(Laya.Event.BLUR,this,function(){}); // 获得焦点 Laya.stage.on(Laya.Event.FOCUS,this,function(){}); 可以试试这两个方法如果不行 就请提供一下可以复现的demo 2019-05-09 0 0 分享 微博 QZONE...
来源: Laya_社区 发布时间: 20190509
...(); _con2 = new Sprite(); _con3 = new Sprite(); _con4 = new Sprite(); Laya.stage.addChild(_con1); Laya.stage.addChild(_con2); Laya.stage.addChild(_con3); Laya.stage.addChild(_con4); _p1 = new UI1(); _p2 = new UI2(); ShowHide(); } private function ShowHide():void { if (c % 2 == 0) { _con3.ad...
来源: Laya_社区 发布时间: 20181025
...var mousePoint=Input3D._tempPoint; mousePoint.setTo(e.pageX,e.pageY); Laya.stage._canvasTransform.invertTransformPoint(mousePoint); this._mouseTouch.mousePositionX=mousePoint.x; this._mouseTouch.mousePositionY=mousePoint.y; this._mouseTouchRayCast(cameras); break ; case "touchstart":; var lastLength...
来源: Laya_社区 发布时间: 20200119
....pos(0, 0); reference.size('100%', '100%'); this.addChild(reference); Laya.stage.on(Laya.Event.RESIZE, this, Laya.Utils.fitDOMElementInArea, [videoElement,reference,0, 0,'100%','100%']); Laya.Utils.fitDOMElementInArea(videoElement,reference,0, 0,'100%','100%') } } 2018-11-24 添加评论 免费帖 -...
来源: Laya_社区 发布时间: 20181124
...g() { SelectColorDialog.super(this); this.name = 'SelectColorDialog'; Laya.stage.addChild(this); this.x = 1013; } Laya.class(selectColorDialog, "SelectColorDialog", testUI); return selectColorDialog; }());然后我使用下面的代码来弹出对话框 var dialog = new SelectColorDialog(); dialog.s...
来源: Laya_社区 发布时间: 20180325
...ya.Image("comp/bg.png"); this.s.addChild(img); this.addChild(this.s); Laya.stage.on(Laya.Event.CLICK, this, this.hitPoint); } private hitPoint(e:Laya.Event): void { console.log(this.s.hitTestPoint(e.stageX, e.stageY)); } } 很简单的代码,不知道什么hitTestPoint始终得到的是false.我...
来源: Laya_社区 发布时间: 20170319
...ya.Loader.getRes("gate/Conventional/Test.ls") let scene = Laya.stage.addChild(test); Laya.stage.setChildIndex(scene, 0); //获取相机 var camera = scene.getChildByName("Main Camera"); console.log("test====================:" + Laya.version...
来源: Laya_社区 发布时间: 20190925
...rite(); //addChild(maskimg); photoimg=new Sprite(); Laya.stage.addChild(photoimg); photoimg.mask=maskimg; photoimg.loadImage(imgn,0,0,500,500); Laya.timer.once(1000, this, function():void{ maskimg.loadImage("http://img.diyphoto.cn/Mask/im ... ot%3B,0,0,500...
来源: Laya_社区 发布时间: 20160923