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

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

211. 发现TimeLine的一些问题,像是BUG [ 79%]

...aya.utils.Stat; import laya.utils.TimeLine; public class AirDemo { private var sp1:Sprite; private var sp2:Sprite; private var sp3:Sprite; private var timeLine1:TimeLine; private var timeLine2:TimeLine; private var timeLine3:TimeLine; public function AirDemo() { //初始化引擎 Laya.init(600, 400)...

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

212. addchild后,怎么去引用? [ 79%]

...个UI页面. 用this.lost1,空对象,但是用this._childs[5]是可以的 var lose1=new Laya.Animation(); lose1.loadAnimation("lose_1.ani"); lose1.x=150; lose1.y=400; lose1.size(100,300); lose1.on(Laya.Event.CLICK,this.listP,this.play1); lose1.name="lose1"; this.listP.addChild(lose1); play1():void {...

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

213. ComboBox属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 78%]

....WebGL; public class UI_ComboBox { /***下边列表美术资源**/ private var skin:String = "../../../../res/ui/combobox.png"; /***下拉列表**/ private var comboBox:ComboBox /***提示信息文本框**/ private var promptText:Text; public function UI_ComboBox() { // 不支持WebGL时自动切换...

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

214. 地图,用某张图片平铺如何实现 [ 78%]

...t(1000,600); Stat.show(10,10); Laya.stage.scaleMode = Stage.SCALE_NOSCALE; var tempWidth:int = 176; var tempHeight:int = 94; var repeatX:int = 5; var repeatY:int = 5; for(var i:int = 0,sz:int = repeatX;i<sz;i++) { for(var j:int = 0,sj:int = repeatY;j<sj;j++) { var image:Image = new Image(); im...

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

215. laya ide中的bug [ 78%]

...量undefined的情况。还有一个bug就是ui编辑器中经常提示xxx var变量重复定义,实际上无论重复与否都会提示 2017-03-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 waterworld007 ...

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

216. 2D物理-桥 [ 78%]

...at; import laya.webgl.WebGL; public class Physics_Physics_Bridge { private var ecount = 30; private var label: Label; public function Physics_Bridge() { Laya.Config.isAntialias = true; Laya.init(1200, 700, WebGL); Stat.show(); Physics.enable(); PhysicsDebugDraw.enable(); Laya.stage.alignV = Stage.AL...

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

217. BackGround.super(this);这个报错 Cannot read property 'call' of undefined [ 78%]

...题 2018-01-10 0 1 分享 微博 QZONE 微信 oy2419498011 赞同来自: var shouye=(function(){ (function shouye(){ Laya.init(100,300); this.bgimg=new BackGround(); Laya.stage.addChild(this.bgimg); })(); return shouye; })(); var BackGround = (function (_super) { function BackGround() { BackGround...

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

218. graphics 问题 [ 78%]

...请: 与内容相关的链接 提交 3 个回复 cuixueying 赞同来自: var sp:Sprite=new Sprite(); sp.graphics.save(); var matrix:Matrix=new Matrix(); matrix.rotate(45); matrix.translate(100,100); sp.graphics.transform(matrix); sp.graphics.drawRect(0,0,200,100,"#FF0000"); sp.graphics.restore(); L...

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

219. emoji表情文字乱码 [ 78%]

...文,必须重新实现这个类 */ //class laya.webgl.text.CharSegment var CharSegment=(function(){     function CharSegment(){         this._sourceStr=null;     }      __class(CharSegment,'laya.webgl.text.CharSegment');     var __proto=CharSegment.prototype;     Laya....

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

220. 缓动-缓动函数演示 [ 78%]

...stage.addChild(this.character); } private createEaseFunctionList(): void { var easeFunctionsList: List = new List(); easeFunctionsList.itemRender = ListItemRender; easeFunctionsList.pos(5, 5); easeFunctionsList.repeatX = 1; easeFunctionsList.repeatY = 20; easeFunctionsList.vScrollBarSkin = ''; easeF...

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