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

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

91. Event触发不了 [ 77%]

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

92. image.skin = base64 无效 [ 77%]

...们的测试代码,运行没有问题 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

93. 加上size设置后,精灵不能点击. [ 77%]

...行代码注释掉就正常了. 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

94. 发现一个奇怪的问题。。。 [ 77%]

发现一个奇怪的问题。。。 有一个sprite ,长300,高50,我用 var bounds = qzone.getGraphicBounds(); qzone.pivot(bounds.width / 2, 0); 设置了它的轴心点,发现它的屏幕坐标也跟着变了 这是怎么回事呢? 2017-05-22 添加评论 免费帖 --> 分享 微博 QZ...

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

95. laya.ui.DialogManager [ 77%]

...nts Packagelaya.uiClasspublic class DialogManagerInheritanceDialogManager Sprite Node EventDispatcher Object DialogManager 对话框管理容器,所有的对话框都在该容器内,并且受管理器管理。 任意对话框打开和关闭,都会出发管理类的open和close事件 可以通...

来源: laya_api 发布时间: 20170929

96. laya.display.Sprite [ 77%]

...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

97. laya.ui.VSlider [ 77%]

...Packagelaya.uiClasspublic class VSliderInheritanceVSlider Slider Component Sprite Node EventDispatcher Object 使用 VSlider 控件,用户可以通过在滑块轨道的终点之间移动滑块来选择值。 VSlider 控件采用垂直方向。滑块轨道从下往上扩展,而标签位于轨道...

来源: laya_api 发布时间: 20170929

98. laya.ui.View [ 77%]

... Events Packagelaya.uiClasspublic class ViewInheritanceView Box Component Sprite Node EventDispatcher ObjectSubclasses Dialog View 是一个视图类。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By alpha : Number透明度,值为0-1,默...

来源: laya_api 发布时间: 20170929

99. laya.ani.swf.MovieClip [ 77%]

...Events Packagelaya.ani.swfClasspublic class MovieClipInheritanceMovieClip Sprite Node EventDispatcher Object MovieClip 用于播放经过工具处理后的 swf 动画。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By alpha : Number透明度...

来源: laya_api 发布时间: 20170929

100. 遮罩 模糊 [ 77%]

遮罩 模糊 var mask = new Sprite(); mask.size(79, 118) mask.pos(38.5, 59); mask.name = "mask"; mask.pivotToCenter(); mask.graphics.drawRect(-38.5, -59, 79, 118, '#000000'); var maskContainer = new Sprite(); maskContainer.size(79, 118); maskContainer.pos(38.5, 59); maskContainer.pivotToCenter(); ...

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