• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,232 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0055 秒)

321. 和原生Dom交互 · LayaAir3.3 · 引擎文档 · LAYABOX [ 82%]

...像头也有相应的封装,下面我们来看下用法。 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

322. 微信小游戏利用开放域好友关系链做排行榜 [ 82%]

...  public constructor(){         this.init();     }      private init():void{         //初始化微信小游戏         Laya.MiniAdpter.init(true);         //程序入口         Laya.init(600, 400,Laya.WebGL);          //激活资源版本...

来源: Laya_社区 发布时间: 20180529

323. 自己写了个label继承官方的label,出现了问题,求指导~ [ 82%]

...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

324. 打包APK运行,drag拖动出现问题;color="#0"程序直接崩溃 [ 82%]

...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

325. 2D自由形态光 · LayaAir3.3 · 引擎文档 · LAYABOX [ 82%]

...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

326. 单选框组容器组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 82%]

...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

327. LayaAir和原生DOM交互(ActionScript-2D进阶篇(AS3)-扩展模块) [ 82%]

...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

328. 字体切片组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 81%]

...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

329. 网络和格式-Socket [ 81%]

...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

330. 绘制圆形与扇形(ActionScript-LayaAir基础篇(AS3)-矢量图) [ 81%]

...        public class Sprite_DrawShapes     {         private var sp:Sprite;                    public function Sprite_DrawShapes()         {             Laya.init(500, 300);             drawSomething();         }  ...

来源: Laya2.0_文档 发布时间: 20210715