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

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

751. 图集动画(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 76%]

...rt laya.utils.Browser; import laya.utils.Handler; import laya.webgl.WebGL; public class HelloLayabox { private const AniConfPath:String = "../../../../res/role.atlas"; private var roleAni:Animation; public function HelloLayabox() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWi...

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

752. laya 的list组件,如果有多页信息,怎么实现翻页丫?? [ 76%]

...imgArray.push(`ui/bg_help_0${i}.png`) } this.list_rule.array = imgArray; } public updateItem(cell: Laya.Box, index: number): void { let img_rule = cell.getChildByName("img_rule") as Laya.Image; img_rule.skin = cell.dataSource let text_info = cell.getChildByName("text_des") as Laya.Text; let i18n = L...

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

753. 鼠标交互-自定义事件 [ 76%]

...a.Tween; import WebGL = Laya.WebGL; export class Interaction_CustomEvent { public static ROTATE: string = "rotate"; private sp: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya....

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

754. 关于这个timer我的跑的快在 自己出完牌之后没有人比我的牌大了。可是我的牌还是出不去 [ 76%]

...t(){ this.turnNumber++; if(this.turnNumber>3) { this.turnNumber=0 } }  public getPlayer()//电脑出牌方法 { var NTS: number; var NTE: number; this.turnNumber; if (this.lastPaixing != "") { if ( this.turnNumber == 1) { NTS = 8; NTE = 5; } if ( this.turnNumber == 2) { NTS = 12; NTE = 9; } if (...

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

755. UI-RefreshList [ 76%]

....create(this, function(){ this.initView(); })); } /** 初始化场景 * */ public initView(): void{ // 加载并添加场景中需要使用的资源 this.baseBox = new Box(); this.baseBox.width = 443; this.baseBox.height = 622; this.baseBox.pos(30, 28); this.baseBox.bgColor = "#ffffff"; // 加载进...

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

756. 骨骼动画-藤蔓 [ 76%]

...ht,WebGL); Laya.stage.bgColor = "#ffffff"; Stat.show(); this.startFun(); } public startFun():void { this.mAniPath = "res/spine/spineRes5/vine.sk"; this.mFactory = new Templet(); this.mFactory.on(Event.COMPLETE, this, this.parseComplete); this.mFactory.on(Event.ERROR, this, this.onError); this.mFacto...

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

757. 骨骼动画-橡胶人 [ 76%]

...ht,WebGL); Laya.stage.bgColor = "#ffffff"; Stat.show(); this.startFun(); } public startFun():void { this.mAniPath = "res/spine/spineRes4/stretchyman.sk"; this.mFactory = new Templet(); this.mFactory.on(Event.COMPLETE, this, this.parseComplete); this.mFactory.on(Event.ERROR, this, this.onError); this...

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

758. LAYA的AS3项目碰见个问题,求解 [ 75%]

...ext" fontSize="12" editorInfo="compId=2"/> </View>   mytexts.as: public class myTexts extends myTextsUI        public function myTexts()         {             super();         }         override protected function initialize():void         {       ...

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

759. 绘制三角形、多边形及根据数据绘制图案(ActionScript-LayaAir基础篇(AS3)-矢量图) [ 75%]

...laya.display.Stage;     import laya.webgl.WebGL;            public class Sprite_DrawShapes     {         private var sp:Sprite;                    public function Sprite_DrawShapes()         {             Laya.init(500, 300, We...

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

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

...ge {  import laya.display.Text;     /** @author Charley */     public class HelloLayabox {   public function HelloLayabox() {    //创建舞台,默认背景色是黑色的    Laya.init(600, 300);    var txt:Text = new Text();         //设置文本内容  ...

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