大约有 1,232 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0059 秒)
Laya_社区(702) Laya_示例(137) Laya2.0_文档(123) Laya2.0_示例(116) Laya3.0_文档(75) Laya3.0_api(39) laya_api(29) Laya2.0_api(11)
Laya tiledmap 监听事件未响应 private tiledMap: Laya.TiledMap /** */ private onLost() { this.tiledMap = new Laya.TiledMap(); this.tiledMap.createMap("resource/tiledMap/isometric_grass_and_water.json", new Rectangle(0, 0, Laya.stage.width, Laya.s...
来源: Laya_社区 发布时间: 20220929
...rt laya.webgl.WebGL; public class SocketSample { public var socket:Socket; private var byte:Byte; public function SocketSample() { //初始化引擎 this.byte = new Byte(); this.byte.endian = Byte.LITTLE_ENDIAN;//这里我们采用小端; this.socket = new Socket(); this.socket.endian = Byte.LITTL...
来源: Laya_社区 发布时间: 20180202
... * @author yung */ public class LayaAirDemo { private var red:Sprite; private var box:Sprite; public function LayaAirDemo() { Laya.init(1200, 800); Laya.stage.bgColor = "#efefef"; ...
来源: Laya_社区 发布时间: 20161122
...ode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.setup(); } private setup(): void { this.createLabel("#FFFFFF", null).pos(30, 50); this.createLabel("#00FFFF", null).pos(290, 50); this.createLabel("#FFFF00", "#FFFFFF").pos(30, 100); this.createLabel("#000000", "#FFFFFF").pos(290, 100);...
来源: Laya_示例 发布时间: 20251209
...uest; import flash.utils.ByteArray; public class UrlImage extends Sprite { private var urlLoader:URLLoader; private var l:Loader; public function UrlImage() { super(); if(stage) { init(); } else { this.addEventListener(Event.ADDED_TO_STAGE,init); } } private function init(e:Event=null):void { urlLoa...
来源: Laya_社区 发布时间: 20151228
...ength; ++i) { output.writeByte(message.charCodeAt(i)); } socket.flush(); } private function onSocketClose(e:*=null):void { trace("Socket closed"); } private function onMessageReveived(message:*=null):void { trace("Message from server:"); if (message is String) { trace(message); } else if (message is...
来源: Laya2.0_示例 发布时间: 20251209
...Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createTexts(); } private createTexts(): void { this.createText('left', 1, null, 100, 10); this.createText('center', 2, "#00BFFF", 155, 150); this.createText('right', 3, "#FF7F50", 210, 290); } private createText(align: string, underlineWidth:...
来源: Laya_示例 发布时间: 20251209
...ode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.setup(); } private setup(): void { this.createLabel("#FFFFFF", null).pos(30, 50); this.createLabel("#00FFFF", null).pos(290, 50); this.createLabel("#FFFF00", "#FFFFFF").pos(30, 100); this.createLabel("#000000", "#FFFFFF").pos(290, 100);...
来源: Laya2.0_示例 发布时间: 20251209
...aya.utils.Handler; /** * ... * @author OttoChen */ public class TestMain { private var txt:Text = null; public function TestMain() { Laya.init(800, 800); txt = new Text(); txt.mouseEnabled = false; txt.overflow = Text.SCROLL; txt.size(Laya.stage.width, Laya.stage.height); txt.pos(10, 10); txt.fontSi...
来源: Laya_社区 发布时间: 20180227
... Laya.timer.frameLoop(1,this,this.onFrameLoop); } private onFrameLoop():void{ console.log("delta:",Laya.timer.delta); } private onFocus(): void { console.log("onFocus:"); } private onBlur(): void { ...
来源: Laya_社区 发布时间: 20180724