用于 Adobe® Flash® Platform 的 ActionScript® 3.0 参考
主页  |  隐藏包列表和类列表 |   |   |  新增内容  |  索引  |  附录  |  为什么显示为英语?
过滤条件: 正在从服务器检索数据...
正在从服务器检索数据...
spark.preloaders 

SplashScreenImageSource  - AS3 Flex

spark.preloaders
public class SplashScreenImageSource
继承SplashScreenImageSource Inheritance Object

语言版本: ActionScript 3.0
产品版本: Flex 4.6
运行时版本: AIR 3

使用 SplashScreenImageSource 类指定一个类(通常是一个嵌入式图像)将以特定的设备配置(如 DPI、方向和分辨率)显示为启动屏幕。

您通常使用一个或多个 SplashScreenImageSource 对象来定义 MXML 中的 SplashScreenImage 类,并将应用程序的 splashScreenImage 属性设置为该类。

如下所示的 SplashScreenImage 组件对 SplashScreenImageSource 有三个不同的定义:

    <?xml version="1.0" encoding="utf-8"?> 
    <s:SplashScreenImage xmlns:fx="http://ns.adobe.com/mxml/2009" 
        xmlns:s="library://ns.adobe.com/flex/spark"> 
     
        <!-- Default splashscreen image. --> 
        <s:SplashScreenImageSource 
            source="@Embed('assets/logoDefault.jpg')"/> 
        
        <s:SplashScreenImageSource 
            source="@Embed('assets/logo240Portrait.jpg')" 
            dpi="240" 
            aspectRatio="portrait"/> 
        
        <s:SplashScreenImageSource 
            source="@Embed('assets/logo240Landscape.jpg')" 
            dpi="240" 
            aspectRatio="landscape"/> 
        
    </s:SplashScreenImage>      
  

MXML 语法expanded隐藏 MXML 语法

The <s:SplashScreenImageSource> tag inherits all of the tag attributes of its superclass and adds the following tag attributes:

  <s:SplashScreenImageSource
   Properties
    aspectRatio="null"
    dpi="NaN"
    minResolution="NaN"
    source="null"
  >
  

相关 API 元素



公共属性
 属性由以下参数定义
      aspectRatio : String = "null"
所需的移动设备的高宽比。
SplashScreenImageSource
 Inheritedconstructor : Object
对类对象或给定对象实例的构造函数的引用。
Object
      dpi : Number = NaN
设备显示相关联的图像所需的 DPI。
SplashScreenImageSource
      minResolution : Number = NaN
显示图像所需的移动设备分辨率的最小大小。
SplashScreenImageSource
      source : Class
用于已定义设备配置的启动屏幕的图像类。
SplashScreenImageSource
公共方法
 方法由以下参数定义
  
构造函数。
SplashScreenImageSource
 Inherited
表示对象是否已经定义了指定的属性。
Object
 Inherited
表示 Object 类的实例是否在指定为参数的对象的原型链中。
Object
 Inherited
表示指定的属性是否存在、是否可枚举。
Object
 Inherited
设置循环操作动态属性的可用性。
Object
 Inherited
返回此对象的字符串表示形式,其格式设置遵守区域设置特定的约定。
Object
 Inherited
返回指定对象的字符串表示形式。
Object
 Inherited
返回指定对象的原始值。
Object
属性详细信息
    

aspectRatio

属性
public var aspectRatio:String = "null"

语言版本: ActionScript 3.0
产品版本: Flex 4.6
运行时版本: AIR 3

所需的移动设备的高宽比。此属性可以是 flash.display.StageAspectRatio.PORTRAITflash.display.StageAspectRatio.LANDSCAPE

如果未设置,则 SplashScreenImage 忽略此属性。

相关 API 元素

    

dpi

属性 
public var dpi:Number = NaN

语言版本: ActionScript 3.0
产品版本: Flex 4.6
运行时版本: AIR 3

设备显示相关联的图像所需的 DPI。

NaN 值表示 SplashScreenImage 忽略该属性。

默认值为 NaN。

    

minResolution

属性 
public var minResolution:Number = NaN

语言版本: ActionScript 3.0
产品版本: Flex 4.6
运行时版本: AIR 3

显示图像所需的移动设备分辨率的最小大小。设备分辨率是舞台宽度和高度的最大值(以像素为单位)。minResolution 属性的值与 Stage.stageWidthStage.stageHeight 属性中较大的属性值进行比较。这两个值中较大的值必须等于或大于 minResolution 属性。

您可以使用此属性基于设备的像素分辨率显示不同的图像。

NaN 值表示 SplashScreenImage 忽略该属性。

默认值为 NaN。

    

source

属性 
public var source:Class

语言版本: ActionScript 3.0
产品版本: Flex 4.6
运行时版本: AIR 3

用于已定义设备配置的启动屏幕的图像类。通常将该属性设置为嵌入资源。

例如:

            <s:SplashScreenImageSource 
                source="@Embed('assets/logo240Portrait.jpg')" 
                dpi="240" 
                aspectRatio="portrait"/> 
      

默认值为 null。

相关 API 元素

构造函数详细信息
    

SplashScreenImageSource

()构造函数
public function SplashScreenImageSource()

语言版本: ActionScript 3.0
产品版本: Flex 4.6
运行时版本: AIR 3

构造函数。





[ X ]为什么显示为英语?
《ActionScript 3.0 参考》中的内容以英语显示

《ActionScript 3.0 参考》中的部分内容未翻译成所有语言。当某个语言元素未翻译时,将显示为英语。例如,ga.controls.HelpBox 类未翻译成任何语言。因此在简体中文版的参考中,ga.controls.HelpBox 类显示为英语。