大约有 1,614 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0088 秒)
Laya_社区(984) Laya2.0_文档(192) Laya_示例(138) Laya2.0_示例(101) Laya3.0_api(61) Laya2.0_api(57) laya_api(53) Laya3.0_文档(28)
...添加动画到舞台,播放动画 ```java //添加到舞台 Laya.stage.addChild(tl); //播放Animation动画 tl.play(); ``` 完整的示例代码如下: **入口类TimeLineDemo.as** ```java package { import laya.display.Animation; import laya.utils.Handler; import laya.webgl.WebGL; public class...
来源: Laya2.0_文档 发布时间: 20210715
...ickButton,[button]);//设置 button 的点击事件处理器。 Laya.stage.addChild(button);//将此 button 对象添加到显示列表。 } private function onClickButton(button:Button):void { trace("按钮button被点击了!"); } } } example Laya.init(640, 800);//设置游戏画布宽高、渲...
来源: Laya3.0_api 发布时间: 20231115
...t(fontName); } createText(font) { let txt = new Laya.Text(); Laya.stage.addChild(txt); txt.width = 250; txt.wordWrap = true; txt.text = "Do one thing at a time, and do well."; txt.font = font; // 文本的字体名称,以字符串形式表示 txt.leading = 5; // 垂直行间距 txt.pos(Laya.sta...
来源: Laya_社区 发布时间: 20190221
...台上添加了好几个节点,用于存放绘图,结构是 this.box.addChild(this.data); Laya.stage.addChild(this.box) 其中鼠标事件MOUSE_DOWN点击需要获取的是this.data的内容 this.data是由一块画布,几个点构成,我用循环函数创建几个点,并且设置名称p...
来源: Laya_社区 发布时间: 20171117
...ScrollBarSkin = "comp/vscroll.png"; //将panel添加到stage上 Laya.stage.addChild(panel); //实例化Image组件 var img:Image = new Image(); //给image添加皮肤 img.skin = "comp/image.png"; //将image添加到panel组件中 panel.addChild(img); } } } ```
来源: Laya2.0_文档 发布时间: 20210715
...ar img = new Laya.Sprite(); img.loadImage('images/item_5.png'); Laya.stage.addChild(img); img.on(Laya.Event.MOUSE_DOWN, img, onStartDrag); function onStartDrag(){ console.log(this); clickIndex++; msgDiv.html('图片选中了' + clickIndex + '次'); // img.startDrag(); } // Laya.stage.alignH = Laya.S...
来源: Laya_社区 发布时间: 20170427
....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, this.onPreloaded)); }; LoadResource.prototype.onPreloaded = function () { this.initLoadD...
来源: Laya_社区 发布时间: 20200924
... = new Laya.Image(); itImg.skin = "http://******/get_img.php?"; Laya.stage.addChild(itImg); 如果"http://******/get_img.php?"图片更换了,我这边如何更换我的image展示 2018-04-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...
来源: Laya_社区 发布时间: 20180416
... this.imgSp.cacheAs = "bitmap"; Laya.stage.addChild(this.imgSp); this.imgSp.graphics.drawTexture(rtex); 2020-06-02 0 0 分享 微博 QZONE 微信 熊猫大侠 赞同来自: 有做过类似功能的同学吗 2020-05-29 0 0 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20200529
... b.name = "egg"+i; Laya.stage.addChild(b); b.on(Event.MOUSE_DOWN, this, mouseHandler); b.on(Event.MOUSE_MOVE, this, mouseHandler); b.on(Event.MOUSE_UP, this, mouseHandler);...
来源: Laya_社区 发布时间: 20170517