大约有 1,204 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0052 秒)
Laya_社区(690) Laya_示例(137) Laya2.0_文档(123) Laya2.0_示例(116) Laya3.0_文档(59) Laya3.0_api(39) laya_api(29) Laya2.0_api(11)
....socket.on(Event.ERROR,this,errorHandler); 回到方法 成功失败。。 private function openHandler(event:Object = null):void{//正确建立连接; }private function receiveHandler(msg:Object = null):void{///接收到数据触发函数}private function closeHandler(e:Object= null):void{//关...
来源: Laya_社区 发布时间: 20180514
...dler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_TextArea { private skin: string = "res/ui/textarea.png"; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.sc...
来源: Laya2.0_示例 发布时间: 20241124
...laya.ui.ProgressBar; import laya.utils.Handler; public class LoadingDemo { private var progressBar:ProgressBar; public function LoadingDemo() { Laya.init(550,400); //预加载loading条资源 var pro1:Object={url:"loads/progressBar.png",type:Loader.IMAGE}; var pro2:Object={url:"loads/progressBar$bar...
来源: Laya_社区 发布时间: 20160509
...体的逻辑代码如下: ```typescript class Main { //二维码对象 private qrcode:any; private qrcodeSp:Laya.Sprite; constructor() { //初始化引擎 Laya.init(600,400); Laya.stage.bgColor = "#ffcccc"; var div:any = Laya.Browser.document.createElement("div"); this.qrcode = new Laya.Browser.wi...
来源: Laya2.0_文档 发布时间: 20210715
...; import laya.ui.Image; import laya.utils.Browser; public class TestDemo { private var sp:Sprite; public function TestDemo() { Laya.init(500,500); Laya.stage.bgColor="#EEFFCC"; sp=new Sprite(); sp.graphics.drawRect(0,0,100,50,"#FF0000"); sp.size(100,50); // 设置轴心点为显示对象的中心,...
来源: Laya_社区 发布时间: 20170106
...Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.demonstrate(); } private demonstrate(): void { for (var i: number = 0; i < 10; i++) { Laya.timer.callLater(this, this.onCallLater); } } private onCallLater(): void { console.log("onCallLater triggered"); var text: Text = new Text(); text.font...
来源: Laya_示例 发布时间: 20241124
...g", "res/apes/monkey2.png"], Handler.create(this, this.onAssetLoaded2)); } private onAssetLoaded1(texture: Texture): void { // 使用texture } private onAssetLoaded2(): void { var pic1: Texture = Loader.getRes("res/apes/monkey0.png"); var pic2: Texture = Loader.getRes("res/apes/monkey1.png"); var pi...
来源: Laya2.0_示例 发布时间: 20241124
...1-01-23 0 0 分享 微博 QZONE 微信 HIPPOPMANANDRAPGIRL 赞同来自: private setup(json :any): void { var list = new List(); list.itemRender = Item; list.repeatX = 3; list.repeatY = 3; list.x = 50; ...
来源: Laya_社区 发布时间: 20210122
...R,this,this.errorHandler); xhr.send("res/a.png","","get","arraybuffer"); } private completeHandler(data:Object):void{ //加载完成返回的data是arraybuffer; //......这里处理我们加密的图片数据,假设我们的图片加密数据是在图片的前面写入了四个字节的数据 //...
来源: Laya2.0_文档 发布时间: 20210714
...Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.demonstrate(); } private demonstrate(): void { for (var i: number = 0; i < 10; i++) { Laya.timer.callLater(this, this.onCallLater); } } private onCallLater(): void { console.log("onCallLater triggered"); var text: Text = new Text(); text.font...
来源: Laya2.0_示例 发布时间: 20241124