Class fever.display.SplashScreen

Description

Simple splash screen implementation.

As splash screen should be not customizable, image used must be embded in your swf. ( no external customization is allowed ).

Example

   var splash : fever.display.SplashScreen = fever.display.SplashScreen.getInstance();
   splash.setBackgroundColor( 0xffffff );
   splash.setBackgroundAlpha( 100 );
   splash.setImage( "myImage" ); //image id defined in your swf ( embded )
   splash.addFilter( FilterBuilder.getSoftShadowFilter() );
   splash.show();
 

Feel free to extend it to define more complex splash screen.

Method Index

new SplashScreen()
addFilter(), cleanFilter(), dispose(), getBackgroundAlpha(), getBackgroundColor(), getInstance(), getText(), getVersion(), hide(), setBackgroundAlpha(), setBackgroundColor(), setImage(), setText(), setVersion(), show(), toString()

Constructor Detail

SplashScreen

public function SplashScreen()

Constructor.

Method Detail

getInstance

static public function getInstance():SplashScreen

Returns unique SplashScreen instance.

Useful to use always the same screen throw application life.

setImage

public function setImage(imageID:String):Void

Sets image id to display in screen.

addFilter

public function addFilter(filter:BitmapFilter):Void

Adds passed-in filter to image.

cleanFilter

public function cleanFilter():Void

Cleans all filters applied on image.

setBackgroundColor

public function setBackgroundColor(color:Number):Void

Sets background color.

getBackgroundColor

public function getBackgroundColor():Number

Returns background color.

setBackgroundAlpha

public function setBackgroundAlpha(alpha:Number):Void

Sets background alpha value.

getBackgroundAlpha

public function getBackgroundAlpha():Number

Returns background alpha value.

setText

public function setText(t:String):Void

Sets splash text.

getText

public function getText():String

Returns splash text.

setVersion

public function setVersion(t:String):Void

Sets application version text.

getVersion

public function getVersion():String

Returns application version text.

show

public function show():Void

Displays screen.

hide

public function hide():Void

Hides screen.

dispose

public function dispose():Void

Disposes screen.

toString

public function toString():String

Returns string representation.