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

大约有 336 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0044 秒)

71. iOS wkWebView [ 84%]

...le.log("connect...."); this.hr = new Laya.HttpRequest(); this.hr.once(Laya.Event.PROGRESS, this, this.onHttpRequestProgress); this.hr.once(Laya.Event.COMPLETE, this, this.onHttpRequestComplete); this.hr.once(Laya.Event.ERROR, this, this.onHttpRequestError); this.hr.send('http://tdev.sanguoh5.com:800...

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

72. 骨骼动画进阶(JavaScript-2D进阶篇(JS)-动画进阶) [ 83%]

...a.WebGL); //创建动画模板 templet=new Laya.Templet(); templet.on(Laya.Event.COMPLETE,this,parseComplete); templet.on(Laya.Event.ERROR,this,onError); //加载动画文件 templet.loadAni("res/spine/goblins/goblins.sk"); function onError() { console.log("parse error"); } function parseComplete() ...

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

73. 新手!谁懂得把下面两个文件转成layaair可以运行的代码 [ 83%]

...nager.AppManager;       import flash.display.Sprite;     import flash.events.Event;     import flash.external.ExternalInterface;     import flash.net.URLVariables;     import flash.text.TextField;     import flash.text.TextFieldAutoSize;     import flash.text.TextFormat;       impo...

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

74. spine动画放大后,遮罩显示不正常 [ 83%]

...      const         Templet = Laya.Templet,         Event = Laya.Event;         let mFactory = new Templet();         mFactory.on(Event.COMPLETE, this, this.parseComplete,[parent,mFactory]);         mFactory.on(Event.ERROR, this, this.onError);     ...

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

75. textinput动态修改宽度 会出现重叠的文字 [ 82%]

...输入文字的多少,它会自动加长的效果。 但是当我监听Event.INPUT,执行动态增加输入框宽度时,出现了文字重叠,很难看,   我的代码很简单就是 let input: Laya.TextInput = new Laya.TextInput(); input.skin = "new/textinput.png"; input.sizeGrid = "50, ...

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

76. 分享个资源加载的方法,类似白鹭的加载方式 [ 82%]

...载方式 第一次发,不足之处还请见谅 class RES extends Laya.EventDispatcher{ // 资源组 public static groups: any; // 资源 public static resources: any; // 完成加载资源配置文件 public static ONLOADEDRESJSON: string = "onLoadedResJson"; // 资源配置文件加载出错 pub...

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

77. laya.net.Socket_API3.0 [ 82%]

... Socket 对象。 Socket 以异步方式传输和接收数据。 Hierarchy EventDispatcher Socket Index Constructors constructor Properties disableInput protocols BIG_ENDIAN LITTLE_ENDIAN Accessors connected endian input output Methods cleanSocket close connect connectByUrl event flush hasListener o...

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

78. websocket无法连接 [ 82%]

...Url("ws://"+host+":"+port+"/hoopster"); //建立连接 this.socket.on(Laya.Event.OPEN, this, onOpen); this.socket.on(Laya.Event.MESSAGE, this, onReceive); this.socket.on(Laya.Event.CLOSE, this, this.closeHandler); this.socket.on(Laya.Event.ERROR, this, this.errorHandler);   以上代码,host传...

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

79. 骨骼动画进阶(TypeScript-2D进阶篇(TS)-动画进阶) [ 82%]

...创建动画模板 this.templet = new Laya.Templet(); this.templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.templet.on(Laya.Event.ERROR, this, this.onError); this.templet.loadAni("res/spine/goblins/goblins.sk"); } onError() { console.log("parse error"); } parseComplete() { //创建第...

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

80. MovieClip报错 [ 82%]

...代码来添加保护:var data:*; data=Loader.getRes(_url); if (!data) { event(Event.ERROR,"file not find"); return; } //保护修改-----start------------------ var atlasData:Object = Loader.getAtlas(_atlasPath); if(!atlasData) { event(Event.ERROR,"file not find"); return; } //保护修改-----en...

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