大约有 4,338 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0082 秒)
Laya_社区(2450) Laya3.0_api(673) Laya2.0_api(357) laya_api(289) Laya2.0_文档(271) Laya_示例(157) Laya2.0_示例(116) Laya3.0_文档(25)
...ublic static const ROTATE:String = "rotate"; private var sp:Sprite; public function Interaction_CustomEvent():void { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; ...
来源: Laya2.0_示例 发布时间: 20241126
...tils.Browser; import laya.webgl.WebGL; public class Text_Restrict { public function Text_Restrict() { // 不支持WebGL时自动切换至Canvas Laya.init(550, 300, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya...
来源: Laya2.0_示例 发布时间: 20241126
....events.Event; public class SwfLabelUse { private var mc:MovieClip; public function SwfLabelUse() { Laya.init(600,600); Laya.stage.bgColor="#EEFFCC"; mc=new MovieClip(); mc.load("output/AAA.swf"); mc.on(Event.LOADED,this,onLoaded); Laya.stage.addChild(mc); } private function onLoaded():void { mc.add...
来源: Laya_社区 发布时间: 20170705
...aRender; private var mouseConstraint:*; private var engine:*; /***/ public function Retitution() { super(); this.width = stageWidth; this.height = stageHeight; setup(); } private function setup():void { initMatter(); initWorld(); Laya.stage.on("resize",this,onResize); } private function initMatter()...
来源: Laya_社区 发布时间: 20171214
...s.Event; import login.LoginView; 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.ADDED_TO_STAGE, init); this.stage.scaleMode = StageScaleMod...
来源: Laya_社区 发布时间: 20151103
...疼 得不到名字啊! 请问这个有什么规律吗 坐等! private function clickFun():void { url = "res/CH/atlas/MORNUI_Z_Gongneng.atlas"; Laya.loader.load(url,new Handler(this,hh)); //trace( Laya.loader.getRes(url) ); } private function hh():void { Laya.stage.addChild(new Image("MORNUI_Z_G...
来源: Laya_社区 发布时间: 20171206
...x: velocityX * 3, y: velocityY * 3 }; Laya.Laya.timer.frameOnce(120, this, function () { newBall.destroy(); }); }); let label = this.label = Laya.Laya.stage.addChild(new Laya.Label("单击屏幕产生新的小球刚体,击向bridge的随机位置")); label.top = 20; label.right = 20; label.fontSiz...
来源: Laya2.0_示例 发布时间: 20241126
...laya.webgl.WebGL; public class LayaAirDemo { private var img:Image; public function LayaAirDemo() { Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load...
来源: Laya_社区 发布时间: 20170704
...am {constructor: , Symbol(Symbol.toStringTag): "WebGLProgram"} constructor:function WebGLProgram() { … } [[Scopes]]:Scopes[0] arguments:null caller:null length:0 name:"WebGLProgram" prototype:WebGLProgram {constructor: , Symbol(Symbol.toStringTag): "WebGLProgram"} constructor:function WebGLProgram...
来源: Laya_社区 发布时间: 20180822
...alue isLocal: boolean = false Returns void off off(type: string, listener: Function): EventDispatcher off(type: string, caller: any, listener?: Function, args?: any[]): EventDispatcher Overrides EventDispatcher.off Defined in laya/d3/RenderObjs/NativeOBJ/NativeTransform3D.ts:559 Parameters type: str...
来源: Laya3.0_api 发布时间: 20231115