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

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

691. 聊天室使用HTMLDivElement,宽度被固定为180了,这个怎末改,求救 [ 86%]

...使用HTMLDivElement,宽度被固定为180了,这个怎末改,求救 var HTMLDivElement = Laya.HTMLDivElement; var textfiled = new HTMLDivElement(); this.addChild(textfiled); textfiled.pos(10, 10); textfiled.width = 890; textfiled.style.color = "#10922a"; textfiled.style.font = "黑体"; textf...

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

692. 保存数据的数组在回调的时候变为undifine [ 86%]

...undifine public function update():void { Utils.removeAll(panelHeroInfo); var heros:Array = GameMain.mainModel.heros.Heros; //获取 MainModel里的武将信息 var leng:int = heros.length; var item:HeroResolveItem; var heroInfo:SHeroInfo; for (var i:int = 0; i < leng; i++) { heroInfo = heros[i]; ...

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

693. 照着官方文档写的 Dialog 报错? [ 86%]

照着官方文档写的 Dialog 报错? var LoadResource = function () { LoadResource.prototype.init = function () { this._container = new Sprite(); Laya.stage.addChild(this._container); Laya.loader.load(["../bin/res/ui/progressBar.png", "../bin/res/ui/progressBar$bar.png"], Handler.create(this, ...

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

694. UI-Dialog [ 86%]

...te(this, this.onSkinLoadComplete)); } private onSkinLoadComplete(): void { var dialog: Dialog = new Dialog(); var bg: Image = new Image(this.assets[0]); dialog.addChild(bg); var button: Button = new Button(this.assets[1]); button.name = Dialog.CLOSE; button.pos(this.DIALOG_WIDTH - this.CLOSE_BTN_WID...

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

695. 纹理截取后内存释放不了 [ 86%]

纹理截取后内存释放不了 private var oriDBArr:Array = null;//位图源 var tex:Texture = Laya.loader.getRes(_url); for (var i:int = 0; i < list1["oriBDPos"].length; i++ ) { var g:Graphics = new Graphics(); var t:Texture = Texture.createFromTexture(tex, posObj.x, posObj.y, posObj.w, posO...

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

696. 分享一个Shader版的CoolDown实现 [ 86%]

...,大家有兴趣的看看 正常渲染效果   alpha遮罩   用法: var texture: Laya.Texture = Laya.Loader.getRes("progress.png"); this.spe = new coolDownSprite(); this.spe.init(texture); //this.spe.initWithoutTexture(128, 128); this.spe.pos(300, 350); this.spe.setProgress(this.progress); La...

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

697. LayaBox 出错啦,请把此信息截图给研发商 SimpleSingletonList [ 86%]

...        if (index!==this.length){                 var end=this.elements[this.length];                 // @xd added, 添加end是存存在判断                 if(end){                     this.elements[index]=end;   ...

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

698. WebSocket发送与接收数据(ActionScript-LayaAir基础篇(AS3)-数据与通信) [ 86%]

...port laya.utils.Byte; import laya.webgl.WebGL; public class Game { private var socket:Socket; private var byte:Byte; public function Game() { //初始化引擎 Laya.init(600, 400,WebGL);// this.byte = new Byte(); this.byte.endian = Byte.LITTLE_ENDIAN;//这里我们采用小端; this.socket = new S...

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

699. Clip属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 86%]

....webgl.WebGL; public class UI_Clip { /***控制器按钮资源***/ private var buttonSkin:String = "../../../../res/ui/button-7.png"; /***切片资源***/ private var clipSkin:String = "../../../../res/ui/num0-9.png"; /***背景资源***/ private var bgSkin:String = "../../../../res/ui/coutDown.png"...

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

700. 用最新版本的IDE开发,用AS语言开发,用HttpRequest加载图片报错,用JS语言开发却可以加载 [ 86%]

...: public function LayaSample() { //初始化引擎 Laya.init(1136, 640); var sp:Sprite = new Sprite(); var xhr:HttpRequest = new HttpRequest(); xhr.once(Event.COMPLETE,this,completeHandler); xhr.once(Event.ERROR,this,errorHandler); xhr.send("res/monkey2.png","","get","arraybuffer"); } private func...

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