大约有 1,232 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0055 秒)
Laya_社区(702) Laya_示例(137) Laya2.0_文档(123) Laya2.0_示例(116) Laya3.0_文档(75) Laya3.0_api(39) laya_api(29) Laya2.0_api(11)
...像头也有相应的封装,下面我们来看下用法。 class Main { private video:Laya.Video; constructor() { //初始化引擎 Laya.init(Laya.Browser.width,Laya.Browser.height); if(Laya.Media.supported() === false){ alert("当前浏览器不支持"); } else{ this.showMessage(); var options:an...
来源: Laya3.0_文档 发布时间: 20251010
... public constructor(){ this.init(); } private init():void{ //初始化微信小游戏 Laya.MiniAdpter.init(true); //程序入口 Laya.init(600, 400,Laya.WebGL); //激活资源版本...
来源: Laya_社区 发布时间: 20180529
...el * @author Administrator * */ public class Label extends laya.ui.Label { private var _textFormat:TextFormat; private var _txt:String; private var _lWidth:int; private var _lHeight:int; private var _lx:int; private var _ly:int; public function Label(text:String="") { super(text); } public function ...
来源: Laya_社区 发布时间: 20170516
...s, onComplet)); } private var imag:Image; private function onComplet():void { imag=new Image("ui/comp/image.png"); Laya.stage.addChild(imag); imag.on(Ev...
来源: Laya_社区 发布时间: 20170510
...rt class LightEffectDemo extends Laya.Script { declare owner: Laya.Sprite; private lightComp: Laya.FreeformLight2D; private rotateSpeed: number = 2; // 增加旋转速度 private scaleTime: number = 0; private scaleSpeed: number = 3; // 增加缩放速度 private intensity: number = 1.8; // 定义...
来源: Laya3.0_文档 发布时间: 20251010
...rty } = Laya; @regClass() export class UI_RadioGroup extends Laya.Script { private SPACING: number = 150; private X_OFFSET: number = 200; private Y_OFFSET: number = 80; private skins: any[]; constructor() { super(); } // 组件被激活后执行,此时所有节点和组件均已创建完毕,此...
来源: Laya3.0_文档 发布时间: 20251016
...y.Sprite; import laya.utils.Browser; public class Main { //二维码对象 private var qrcode:Object; private var qrcodeSp:Sprite; public function Main() { //初始化引擎 Laya.init(600, 400); var div:Object = Browser.document.createElement("div"); qrcode= new Browser.window.QRCode(div,{ width : 1...
来源: Laya2.0_文档 发布时间: 20210715
...perty } = Laya; @regClass() export class UI_FontClip extends Laya.Script { private TestClipNum: string = "atlas/comp/fontClip_num.png"; private _ClipNum: string = "atlas/comp/fontClip_num.png"; private _ClipNum1: string = "atlas/comp/fontClip_num.png"; private TestFontClip: string = "atlas/comp/font...
来源: Laya3.0_文档 发布时间: 20251010
...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...
来源: Laya_示例 发布时间: 20251209
... public class Sprite_DrawShapes { private var sp:Sprite; public function Sprite_DrawShapes() { Laya.init(500, 300); drawSomething(); } ...
来源: Laya2.0_文档 发布时间: 20210715