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

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

511. 网络和格式-Socket [ 68%]

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

来源: Laya2.0_示例 发布时间: 20261113

512. 请问HtmlDivElement控件在innerHTML中有<div>标签的情况下获取实际宽高为0的问题? [ 68%]

...t;div&gt;标签的情况下获取实际宽高为0的问题? 示例代码: (function() { var Stage = Laya.Stage; var HTMLDivElement = Laya.HTMLDivElement; var HTMLIframeElement = Laya.HTMLIframeElement; var Browser = Laya.Browser; var WebGL = Laya.WebGL; (function() { // 不支持WebGL时自动切换...

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

513. 三个图好像无法绑定不同的事件? [ 68%]

...,100,100,90,90); Laya.stage.addChild(img1); img1.on(Laya.Event.CLICK,this, function(name){ console.log(name);},['图1']); var img2 = new Laya.Sprite(); img2.loadImage('https://layaair.ldc.layabox.com/demo/h5/res/apes/monkey2.png',200,300,90,90); Laya.stage.addChild(img2); img2.on(Laya.Event.CLICK,th...

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

514. 自己创建的box作为tab,为啥没有点击事件啊? [ 68%]

...omp.json", Laya.Handler.create(this, onAssetLoaded2), null, Loader.ATLAS); function onAssetLoaded2() {     Laya.class(MyBoot, "MyBootClass", MyPage2UI);     var UI = new MyBootClass();     Laya.stage.addChild(UI); } function MyBoot() {     MyBoot.super(this);     this.MyTab.selectHandler ...

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

515. 请问怎么制作一个layabox js版本的加载效果 [ 68%]

...2-31 0 0 分享 微博 QZONE 微信 gaowei2024 赞同来自: var Loadings=(function(_super) { function Loadings(){ Loadings.super(this); var Stage = Laya.Stage; var ProgressBar = Laya.ProgressBar; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var progressBar; Laya.init(1024, 600,WebGL); Laya.s...

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

516. 分享:Graphics下cmds命令流的使用! [ 68%]

....utils.Handler; import laya.webgl.WebGL; public class GraCmdsDemo { public function GraCmdsDemo() { //初始化舞台 Laya.init(Browser.width,Browser.height,WebGL); //预加载资源 Laya.loader.load(['apes/monkey0.png','apes/monkey1.png','apes/monkey2.png','apes/monkey3.png'],Handler.create(this,on...

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

517. laya.d3.core.render.posteffect.ScalableAO_API3.0 [ 68%]

...ss with type parameter Constructor Method Accessor Object literal Variable Function Type alias Inherited method Inherited accessor Enumeration Interface Static method

来源: Laya3.0_api 发布时间: 20231115

518. l微信开放域无法显示,但是可以正常传数据 [ 68%]

...图集 Laya.loader.load(["res/atlas/test.atlas"],Laya.Handler.create(null,function(){ //加载完成 //使用接口将图集透传到子域 Laya.MiniAdpter.sendAtlasToOpenDataContext("res/atlas/test.atlas"); }));子域main.ts: import GameConfig from "./GameConfig"; import BigRank from "./view/BigRan...

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

519. Sprite-绘制各种形状 [ 68%]

...ebgl.WebGL; public class Sprite_DrawShapes { private var sp:Sprite; public function Sprite_DrawShapes() { // 不支持WebGL时自动切换至Canvas Laya.init(740, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage...

来源: Laya2.0_示例 发布时间: 20261113

520. 急急急,如何设置按钮点击加载ani [ 68%]

...:String = "https://layaair.ldc.layabox.co ... 3B%3B         public function LayaUISample() {             //初始化引擎                          Laya.init(600, 400,WebGL);             Laya.stage.alignV = Stage.ALIGN_MIDDLE;         ...

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