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

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

141. LayaAirIDE中第一个程序“Hello Layabox”(ActionScript-LayaAir基础篇(AS3)-快速上手) [ 67%]

...台,默认背景色是黑色的             Laya.init(600, 300);             var txt:Text = new Text();                           //设置文本内容             txt.text = "Hello Layabox";                    ...

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

142. 如何用代码控制panel的vscroll滚动幅度 [ 67%]

...置宽高,否则panel不显示 var panel:Panel=new Panel(); panel.size(300,300); panel.pos(100,100); panel.vScrollBarSkin='comp/vscroll.png'; panel.hScrollBarSkin='comp/hscroll.png'; Laya.stage.addChild(panel); //panel的子对象,,切忌要设置宽高,且宽高大于panel宽高 var bg:Spri...

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

143. 计时器-延迟执行 [ 67%]

...t.CLICK, this, onDecreaseAlpha2); } function createButton(label) { var w = 300, h = 60; var button = new Sprite(); button.graphics.drawRect(0, 0, w, h, "#FF7F50"); button.size(w, h); button.graphics.fillText(label, w / 2, 17, "20px simHei", "#ffffff", "center"); return button; } function onDecreaseA...

来源: Laya_示例 发布时间: 20241002

144. Sprite-新手引导 [ 66%]

...8, y: 583, radius: 110, tip: "../../res/guide/help3.png", tipx: 900, tipy: 300 }]; var guideStep = 0; var hitArea; var interactionArea; (function() { Laya.init(1285, 727); Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.alignV = Stage.ALIGN_MIDDLE; //绘制一个蓝色方块,不被抠图 var ga...

来源: Laya_示例 发布时间: 20241002

145. 计时器-延迟执行 [ 66%]

...creaseAlpha2); } createButton(label) { const Sprite = Laya.Sprite; let w = 300, h = 60; let button = new Sprite(); Laya.stage.addChild(button); button.graphics.drawRect(0, 0, w, h, "#FF7F50"); button.size(w, h); button.graphics.fillText(label, w / 2, 17, "20px simHei", "#ffffff", "center"); return b...

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

146. JS进度条加载问题 [ 66%]

...) { progressBar=new Laya.Sprite(); progressBar.loadImage("comp/BG1.jpg",50,300); progressBar.width=300; progressBar.sizeGrid="5,5,5,5"; progressBar.changeHandler=new Handler(this,onChange); //当progressBar的value值改变时触发 Laya.stage.addChild(progressBar); onchange(); } function onChange(v...

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

147. Sprite-新手引导 [ 66%]

..., { x: 1128, y: 583, radius:110, tip:"res/guide/help3.png", tipx:900, tipy:300 } ], gameContainer, guideContainer, maskArea, interactionArea, hitArea, tipContainer, guideStep = 0; class Sprite_Guide { constructor() { const WebGL = Laya.WebGL, Stage = Laya.Stage; // 不支持WebGL时自动切换至Ca...

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

148. js进度,进度,js场景进度效果 [ 66%]

... (num >= 1) { this.run(); } }); }; p.run = function() { Laya.timer.once(300, this, function() {//给一个延迟 1000ms进度场景 alert('进度加载完毕'); this.Progress.visible = false; this.Start = new Start(); this.Start.zOrder = 2;//由于UI[b]编辑不能这只层级·需要用代码打...

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

149. LayaBox HelloWorld实战 [ 65%]

...e = 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=260; but...

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

150. 报错:找不到基类,按照laya社区的解答做了,但是导致了另外一个类和接口出现一样的错 [ 65%]

...unction HelloLayaBox()         {             Laya.init(600, 300);             var txt:Text = new Text();             txt.text = "HelloLayaBox";             txt.color = "#ff0000";             txt.fontSize = 66;             txt.bold = true; ...

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