大约有 3,979 项符合查询结果, 库内数据总量为 30,910 项。 (搜索耗时: 0.0074 秒)
Laya_社区(2827) Laya2.0_文档(369) Laya2.0_api(225) laya_api(169) Laya_示例(157) Laya2.0_示例(117) Laya3.0_api(62) Laya3.0_文档(53)
...isionDetection(value:Boolean):voiddisableSimulationproperty public static var disableSimulation:Boolean = falsefixedTimeStepproperty public var fixedTimeStep:Number物理模拟器帧的间隔时间:通过减少fixedTimeStep可增加模拟精度,默认是1.0 / 60.0。gravityproperty gravity:Vect...
来源: Laya2.0_api 发布时间: 20190513
...utils.Handler; import laya.utils.Tween; public class LayaAirDemo { private var sp:Sprite; private var num:int; public function LayaAirDemo() { Laya.init(550,400); sp=new Sprite(); sp.graphics.drawCircle(0,0,50,"#00FFFF"); Laya.stage.addChild(sp); sp.pos(100,100); Tween.to(sp,{x:500},1000,Ease.backIn...
来源: Laya_社区 发布时间: 20160913
...(跟官方微信飞机结构类似) 问题截图: 代码:for (var i:int=0;i<10;i++){ var p:wheel=Pool.getItemByClass("wheel", wheel); p.pos(i*90+100,200); p.init(); roleLayer.addChild(p) } /////////////wheelas.as public function wheel(){ this.graphics.drawCi...
来源: Laya_社区 发布时间: 20190312
...果可以当作图片源,再次绘制到其他Sprite里面,示例: var htmlCanvas:HTMLCanvas = sprite.drawToCanvas(100, 100, 0, 0);//把精灵绘制到canvas上面 var sp:Sprite = new Sprite();//创建精灵 sp.graphics.drawTexture(htmlCanvas.getTexture());//把截图绘制到精灵上 Laya.st...
来源: Laya2.0_api 发布时间: 20190513
...his, this.finishScrollText);}/* 鼠标滚动文本 */function scrollText(){var nowX = this.txt.mouseX;var nowY = this.txt.mouseY;this.txt.scrollX += this.prevX - nowX;this.txt.scrollY += this.prevY - nowY;this.prevX = nowX;this.prevY = nowY;} 2018-09-06 0 0 分享 微博 QZONE 微信 为什么被折...
来源: Laya_社区 发布时间: 20180125
... public class Sprite_DrawShapes { private var sp:Sprite; public function Sprite_DrawShapes() { Laya.init(500, 300, WebGL); drawSomething(); } ...
来源: Laya2.0_文档 发布时间: 20210714
HTMLIframeElement报错 我用 var p:HTMLIframeElement = new HTMLIframeElement(); Laya.stage.addChild(p); p.href = "test.html"; p.y = 200; 一执行就报错是为什么啊?错误如下: Utils.parseXMLFromString=function(value){ var rst; value=value.replace(/>\s+</g,'><'); rst=(new ...
来源: Laya_社区 发布时间: 20180103
...的 Laya.init(600, 300); var txt:Text = new Text(); //设置文本内容 txt.text = "Hello Layabox"; //设置文本颜...
来源: Laya2.0_文档 发布时间: 20210715
...nction onLoaded():void { //panel 切记设置宽高,否则panel不显示 var panel:Panel=new Panel(); panel.size(300,300); panel.pos(100,100); panel.vScrollBarSkin='comp/vscroll.png'; panel.hScrollBarSkin='comp/hscroll.png'; Laya.stage.addChild(panel); //panel的子对象,,切忌要设置宽...
来源: Laya_社区 发布时间: 20170719
...ledMap() this.tMap.antiCrack = true //创建Rectangle实例,视口区域 var viewRect:Laya.Rectangle = new Laya.Rectangle(0, 0, Conf.App_Width, Conf.App_Height); //创建TiledMap地图 this.tMap.createMap("map/"+mapname+".json",viewRect, laya.utils.Handler.create(this, this.test));//, null, new La...
来源: Laya_社区 发布时间: 20170627