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

大约有 1,363 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0089 秒)

461. 带格式后缀的图片无法成功加载 [ 72%]

....getRes(url); console.log(picTemp.width) // undefined let nodee = new Laya.Sprite() nodee.texture = picTemp nodee.width = 500 nodee.height = 250 nodee.x = 100 nodee.y = 350 Laya.stage.addChild(nodee) }));上面这个图片无法正常显示,打印 texture 的宽是 undefined,如果是带后缀...

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

462. laya.map.MapLayer [ 72%]

...ds | Events Packagelaya.mapClasspublic class MapLayerInheritanceMapLayer Sprite Node EventDispatcher Object 地图支持多层渲染(例如,地表层,植被层,建筑层等) 本类就是层级类 Public Properties Hide Inherited Public Properties Show Inherited Public Properties Propert...

来源: laya_api 发布时间: 20170929

463. laya.ui.HSlider [ 72%]

...Packagelaya.uiClasspublic class HSliderInheritanceHSlider Slider Component Sprite Node EventDispatcher Object 使用 HSlider 控件,用户可以通过在滑块轨道的终点之间移动滑块来选择值。 HSlider 控件采用水平方向。滑块轨道从左向右扩展,而标签位于轨道...

来源: laya_api 发布时间: 20170929

464. 使用UrlLoader加载图片,flash获取data为byteArray,翻译成h5后data为image? [ 72%]

...rt flash.display.Bitmap; import flash.display.Loader; import flash.display.Sprite; import flash.events.Event; import flash.net.URLLoader; import flash.net.URLLoaderDataFormat; import flash.net.URLRequest; import flash.utils.ByteArray; public class UrlImage extends Sprite { private var urlLoader:URLL...

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

465. LayaAir和原生DOM交互(JavaScript-2D进阶篇(JS)-扩展模块) [ 72%]

...'' + '' + '' + 'I like ' + '' + 'cheese' + '' + '' + ''; var sp = new Laya.Sprite(); sp.loadImage(data, 0, 0, 200, 200); Laya.stage.addChild(sp); ``` 通过data来当做url传递给loadImage这个方法引擎就会帮我们加载并解码显示出来。loadImage这个方法中的参数仅仅有...

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

466. laya.ui.ViewStack [ 72%]

...ackagelaya.uiClasspublic class ViewStackInheritanceViewStack Box Component Sprite Node EventDispatcher ObjectImplements IItem ViewStack 类用于视图堆栈类,用于视图的显示等设置处理。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefi...

来源: laya_api 发布时间: 20170929

467. popupEffect 有谁能告诉我dialog的这个东西要怎么用啊? [ 72%]

...oseEffect修改      public var popupEffect:Function = function(dialog:Sprite):void {             dialog.scale(1, 1);             Tween.from(dialog, {x: Laya.stage.width / 2, y: Laya.stage.height / 2, scaleX: 0, scaleY: 0}, 300, Ease.backOut, Handler.create(this, this.doO...

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

468. laya.ui.VScrollBar [ 72%]

...ya.uiClasspublic class VScrollBarInheritanceVScrollBar ScrollBar Component Sprite Node EventDispatcher Object 使用 VScrollBar (垂直 ScrollBar )控件,可以在因数据太多而能在显示区域完全显示时控制显示的数据部分。 Public Properties Hide Inherited Public Proper...

来源: laya_api 发布时间: 20170929

469. laya.ui.LayoutBox [ 72%]

...ackagelaya.uiClasspublic class LayoutBoxInheritanceLayoutBox Box Component Sprite Node EventDispatcher ObjectSubclasses HBox, VBox LayoutBox 是一个布局容器类。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By  align : String 子对象...

来源: laya_api 发布时间: 20170929

470. HTMLDivElement 方法显示一个图片的时候有没有加载成功的事件 [ 72%]

...图 TextInput重写onFocus和onBlur事件监听到 关于遍历产生的sprite的点击事件,急,大神帮看哈 Texture图片能否进行翻转? Animation如何加点击事件 路径是对的,但老是,调试控制台提示:错误,图片是IDE自带的,也显示 event自定...

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