Apache Flex 4.16.1 API Reference | All Packages | All Classes | Index | Frames No Frames |
SplashScreen

Package | spark.preloaders
Class | public class SplashScreen
Inheritance | SplashScreen flash.display.Sprite
Implements | IPreloaderDisplay

Language Version : | ActionScript 3.0

Product Version : | Flex 4.5

Runtime Versions : | Flash Player 10, AIR 2.5

The SplashScreen class is the default preloader for Mobile Flex applications. Developers can specify image class and resize mode through the Application properties `splashScreenImage`, `splashScreenScaleMode` and `splashScreenMinimumDisplayTime`. The SplashScreen monitors device orientation and updates the image so that it appears on screen as if the orientation is always StageOrientation.DEFAULT.

See also

spark.components.Application.splashScreenImage
spark.components.Application.splashScreenScaleMode
spark.components.Application.splashScreenMinimumDisplayTime

Public Properties

| Property | Defined By
--- | --- | ---
|  | preloader : Sprite [write-only] The Preloader class passes in a reference to itself to the display class so that it can listen for events from the preloader. | SplashScreen
|  | stageHeight : Number The height of the stage, which is passed in by the Preloader class. | SplashScreen
|  | stageWidth : Number The width of the stage, which is passed in by the Preloader class. | SplashScreen

Public Methods

| Method | Defined By
--- | --- | ---
|  | SplashScreen() Constructor. | SplashScreen
|  | initialize():void Called by the Preloader after the download progress bar has been added as a child of the Preloader. | SplashScreen

Property Detail

preloader | property

`preloader:Sprite` [write-only]

Language Version : | ActionScript 3.0

Product Version : | Flex 4.5

Runtime Versions : | Flash Player 10, AIR 2.5

The Preloader class passes in a reference to itself to the display class so that it can listen for events from the preloader.

Implementation
`public function set preloader(value:Sprite):void`

stageHeight | property |

`stageHeight:Number`

Language Version : | ActionScript 3.0

Product Version : | Flex 4.5

Runtime Versions : | Flash Player 10, AIR 2.5

The height of the stage, which is passed in by the Preloader class.

Implementation
`public function get stageHeight():Number`
`public function set stageHeight(value:Number):void`

stageWidth | property |

`stageWidth:Number`

Language Version : | ActionScript 3.0

Product Version : | Flex 4.5

Runtime Versions : | Flash Player 10, AIR 2.5

The width of the stage, which is passed in by the Preloader class.

Implementation
`public function get stageWidth():Number`
`public function set stageWidth(value:Number):void`
Constructor Detail

SplashScreen | () | Constructor

`public function SplashScreen()`

Language Version : | ActionScript 3.0

Product Version : | Flex 4.5

Runtime Versions : | Flash Player 10, AIR 2.5

Constructor.

Method Detail

initialize | () | method

`public function initialize():void`

Language Version : | ActionScript 3.0

Product Version : | Flex 4.5

Runtime Versions : | Flash Player 10, AIR 2.5

Called by the Preloader after the download progress bar has been added as a child of the Preloader. This should be the starting point for configuring your download progress bar.

Wed Nov 15 2017, 09:50 AM +01:00