大约有 592 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0056 秒)
Laya_社区(305) Laya3.0_api(65) Laya2.0_api(58) laya_api(54) Laya2.0_示例(32) Laya_示例(31) Laya2.0_文档(26) Laya3.0_文档(21)
...如下 /////////////左右两张背景图 var sprite0:Sprite = new Sprite(); sprite0.loadImage("creatRoom/background_bk.png"); sprite0.pos(0,0 ); sprite0.cacheAsBitmap = true; Laya.stage.ad...
来源: Laya_社区 发布时间: 20170314
...ackagelaya.uiClasspublic class HBoxInheritanceHBox LayoutBox Box Component Sprite Node EventDispatcher Object HBox 是一个水平布局容器类。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By align : String 子对象对齐方式。LayoutB...
来源: laya_api 发布时间: 20170929
...00,100,null,"#000000",2) 效果: 代码: var sp:Sprite = new Sprite(); this.addChild(sp); sp.pos(200, 200); sp.graphics.drawRect(0, 0, 200, 200, "#ff0000", "#000000", 2); 附件 : --> 2018-05-10 添加评论...
来源: Laya_社区 发布时间: 20180510
Event触发不了 var btn:Sprite = new Sprite(); login.addChild(btn); btn.graphics.drawRect(100, 200, 50, 50, "#000"); btn.pos(100, 200); btn.size(50,50); btn.on(Event.MOUSE_DOWN, this, function():void {console.log(1);}); btn.on换成Laya.stage.on是可以触发的,但是btn却触发不了。 麻...
来源: Laya_社区 发布时间: 20170525
...们的测试代码,运行没有问题 package core { import laya.display.Sprite; import laya.resource.HTMLCanvas; import laya.ui.Image; /** * ... * @author ww */ public class TestBase64Img { public function TestBase64Img() { Laya.init(1000, 900); testDraw(); } public function testDraw():void { var...
来源: Laya_社区 发布时间: 20170417
...行代码注释掉就正常了. function createImg(){ var img = new Laya.Sprite(); var r = Math.random(); var s = r > 0.66 ? "img/flower1.jpg" : r > 0.33 ? "img/flower2.png" : "img/flower3.jpg" img.loadImage(s); img.on(Laya.Event.CLICK, this, () => { img.y -= 10; }) img.pos(100, 300) Laya.s...
来源: Laya_社区 发布时间: 20180412
发现一个奇怪的问题。。。 有一个sprite ,长300,高50,我用 var bounds = qzone.getGraphicBounds(); qzone.pivot(bounds.width / 2, 0); 设置了它的轴心点,发现它的屏幕坐标也跟着变了 这是怎么回事呢? 2017-05-22 添加评论 免费帖 --> 分享 微博 QZ...
来源: Laya_社区 发布时间: 20170522
...I DocumentationAll Packages | All Classes | Index | Frames No Frames SpriteProperties | Methods | Events Packagelaya.displayClasspublic class SpriteInheritanceSprite Node EventDispatcher ObjectSubclasses AnimationBase, PerfHUD, Scene, Stage, Text Sprite 是基本的显示图形的显示列...
来源: Laya2.0_api 发布时间: 20190513
...nts Packagelaya.uiClasspublic class DialogManagerInheritanceDialogManager Sprite Node EventDispatcher Object DialogManager 对话框管理容器,所有的对话框都在该容器内,并且受管理器管理。 任意对话框打开和关闭,都会出发管理类的open和close事件 可以通...
来源: laya_api 发布时间: 20170929
...Packagelaya.uiClasspublic class VSliderInheritanceVSlider Slider Component Sprite Node EventDispatcher Object 使用 VSlider 控件,用户可以通过在滑块轨道的终点之间移动滑块来选择值。 VSlider 控件采用垂直方向。滑块轨道从下往上扩展,而标签位于轨道...
来源: laya_api 发布时间: 20170929