Pakket | spark.preloaders |
Klasse | public class SplashScreenImageSource |
Overerving | SplashScreenImageSource Object |
Taalversie: | ActionScript 3.0 |
Productversie: | Flex 4.6 |
Runtimeversies: | AIR 3 |
You typically use one or more SplashScreenImageSource
objects to define a SplashScreenImage class in MXML
and set the application's splashScreenImage
property to that class.
Shown below is SplashScreenImage component with three different definitions for 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-syntaxisMXML-syntaxis verbergen
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" >
Verwante API-elementen
Eigenschap | Gedefinieerd door | ||
---|---|---|---|
aspectRatio : String = "null"
The required aspect ratio of the mobile device. | SplashScreenImageSource | ||
constructor : Object
Verwijzing naar het klasseobject of de constructorfunctie van een bepaalde objectinstantie. | Object | ||
dpi : Number = NaN
The required DPI of the device to display the associated image. | SplashScreenImageSource | ||
minResolution : Number = NaN
The required minimum size of the mobile device's resolution needed
to display the image. | SplashScreenImageSource | ||
source : Class
The image class for the splash screen to use for the defined
device configuration. | SplashScreenImageSource |
Methode | Gedefinieerd door | ||
---|---|---|---|
Constructor. | SplashScreenImageSource | ||
Geeft aan of voor een object een opgegeven eigenschap is gedefinieerd. | Object | ||
Geeft aan of een instantie van de klasse Object zich in de prototypeketen van het object bevindt dat als parameter is opgegeven. | Object | ||
Geeft aan of de opgegeven eigenschap bestaat en kan worden opgesomd. | Object | ||
Stelt de beschikbaarheid van een dynamische eigenschap voor lusbewerkingen in. | Object | ||
Geeft de tekenreeksweergave van dit object weer, geformatteerd volgens de locatiespecifieke conventies. | Object | ||
Retourneert een tekenreeksrepresentatie van het opgegeven object. | Object | ||
Retourneert de primitieve waarde van het opgegeven object. | Object |
aspectRatio | eigenschap |
public var aspectRatio:String = "null"
Taalversie: | ActionScript 3.0 |
Productversie: | Flex 4.6 |
Runtimeversies: | AIR 3 |
The required aspect ratio of the mobile device.
This property can be either flash.display.StageAspectRatio.PORTRAIT
or flash.display.StageAspectRatio.LANDSCAPE
.
If not set, then SplashScreenImage
ignores this property.
Verwante API-elementen
dpi | eigenschap |
public var dpi:Number = NaN
Taalversie: | ActionScript 3.0 |
Productversie: | Flex 4.6 |
Runtimeversies: | AIR 3 |
The required DPI of the device to display the associated image.
A value of NaN means the property is ignored by SplashScreenImage.
De standaardwaarde is NaN.
minResolution | eigenschap |
public var minResolution:Number = NaN
Taalversie: | ActionScript 3.0 |
Productversie: | Flex 4.6 |
Runtimeversies: | AIR 3 |
The required minimum size of the mobile device's resolution needed
to display the image.
The device resolution is the maximum of the stage width and height, in pixels.
The value of the minResolution
property is compared against the larger
of the values of the Stage.stageWidth
and Stage.stageHeight
properties.
The larger of the two values must be equal to or greater than the minResolution
property.
You can use this property to display different images based on the pixel resolution of a device.
A value of NaN means the property is ignored by the SplashScreenImage.
De standaardwaarde is NaN.
source | eigenschap |
public var source:Class
Taalversie: | ActionScript 3.0 |
Productversie: | Flex 4.6 |
Runtimeversies: | AIR 3 |
The image class for the splash screen to use for the defined device configuration. Typically you set this property to an embedded resource.
For example:
<s:SplashScreenImageSource source="@Embed('assets/logo240Portrait.jpg')" dpi="240" aspectRatio="portrait"/>
De standaardwaarde is null.
Verwante API-elementen
SplashScreenImageSource | () | Constructor |
public function SplashScreenImageSource()
Taalversie: | ActionScript 3.0 |
Productversie: | Flex 4.6 |
Runtimeversies: | AIR 3 |
Constructor.
Wed Jun 13 2018, 11:42 AM Z