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

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

501. 关于闭包的问题 [ 70%]

...Sprite(); letter.loadImage("../imgs/linkup/" + letterList[z] + ".png", (bg.width / letterList.length) * z, 0, bg.width / letterList.length, bg.height / 2); Laya.stage.addChild(letter); letter.on("click", this, (function(para){ console.log("z:"+z+";para:"+para+";letterList[para]:"+letterList[para]); ...

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

502. 切换位图,点击图片距离容器的区域也会触发点击事件 [ 70%]

...assets/comp/haoyuobang-hui.png"; var img = new Laya.Sprite(); //实例 img.width = 300; //宽高 img.height = 200; switchImg(); img.on(Laya.Event.CLICK, this, switchImg) //点击事件 Laya.stage.addChild(img); function switchImg() { img.graphics.clear(); //清除绘制 var imgUrl = (this.flag = !th...

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

503. 我创建了 一个 dialogUI,怎么在页面中打开? [ 70%]

... dialogUI,怎么在页面中打开? this.wrong=new ui.wrongUI; this.wrong.width=300; this.wrong.height=200; this.wrong.x=50; this.wrong.y=100; this.doworkui.addChild(this.wrong); doworkui是我的一个UI,我要在这个面中打开一个对话框. wrongUI是我创建的 对话框 我现在这个对...

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

504. LoginView.super(this);这样调用的父类的构造函数的方法,不能用吗 [ 69%]

...法完成缓动后的回调怎么写,Tween.to(beginbox,{x:-Laya.Browser.width},1000,null,aaa,0,false);aaa是一个测试方法 注册函数里面 事件侦听函数的执行域 的详解 websocket 中 protobuf 数据的发送与接收的具体方法是怎样的? ts如何通过文件集加载的...

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

505. LayaBox HelloWorld实战 [ 69%]

...nstance = this; } onBtnShowClick(){ var dialog = new Laya.Dialog(); dialog.width=300; dialog.height=600; //var bg = new Laya.Image('comp/img_bg.png'); //dialog.addChild(bg); var button = new Laya.Button('comp/button.png'); button.label='Hello World!'; button.name = Laya.Dialog.CLOSE; button.width=26...

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

506. alertexception info: [Typeerror: null is not object (evaluating this. vaoext createvertexarrayoes"] [ 69%]

...触发时会报null 跳转场景后laya.core.js就报Cannot read property 'width' of null的错误 问题状态 最新活动: 2019-12-26 12:01 浏览: 1343 关注: 2 人 圣诞老人的麋鹿 • 2020-01-15 17:02 laya 2.4.0也有这个问题,laya的引擎版本和native都为2.4.0仍然出现,...

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

507. Text的中划线(删除线) [ 69%]

...awUnderline=function(align,x,y,lineIndex){             var lineWidth=this._lineWidths[lineIndex];             switch (align){                 case 'center':                     x-=lineWidth / 2;                     break...

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

508. 播放视频只有声音没有图像 [ 69%]

...oElement.controls = false; videoElement.autoplay =true; videoElement.style.width='100%'; videoElement.style.height='100%'; videoElement.autobuffer=true; videoElement.src = "/Users/apple/LayBox/星空/laya/assets/video/world.mp4"; // 设置画布上的对齐参照物 let reference = new Laya.Sprite()...

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

509. 对话框点击空白处无法关闭 [ 69%]

...this.createView(testUI.uiView); } testUI.uiView={"type":"Dialog","props":{"width":266,"height":720},"child":[{"type":"Image","props":{"y":0,"x":0,"skin":"poker/bottom_slider.png"}}]}; return testUI; })(Dialog);我定义了一个对象来使用它 var SelectColorDialog = (function () { function selec...

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

510. 屏幕截屏问题 [ 69%]

...tion(){ if( window.conch ) { window.conch.captureScreen(function(arrayBuff,width,height){ window.image = window.document.createElement("img"); window.image.putImageData(arrayBuff,width,height); }) } }     E/LayaBox: >>>>>>>>>>>>>>>>>>>>&g...

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