Packageorg.flixel.system
Classpublic class FlxPreloader
InheritanceFlxPreloader Inheritance flash.display.MovieClip

This class handles the 8-bit style preloader.



Public Properties
 PropertyDefined By
  className : String
This should always be the name of your main project/document class (e.g.
FlxPreloader
  minDisplayTime : Number
Change this if you want the flixel logo to show for more or less time.
FlxPreloader
  myURL : String
Set this to your game's URL to use built-in site-locking.
FlxPreloader
Protected Properties
 PropertyDefined By
  _height : uint
Useful for storing "real" stage height if you're scaling your preloader graphics.
FlxPreloader
  ImgLogo : Class
FlxPreloader
  ImgLogoCorners : Class
FlxPreloader
  ImgLogoLight : Class
FlxPreloader
  _width : uint
Useful for storing "real" stage width if you're scaling your preloader graphics.
FlxPreloader
Public Methods
 MethodDefined By
  
Constructor
FlxPreloader
Protected Methods
 MethodDefined By
  
create():void
Override this to create your own preloader objects.
FlxPreloader
  
destroy():void
FlxPreloader
  
update(Percent:Number):void
Override this function to manually update the preloader.
FlxPreloader
Property Detail
_heightproperty
protected var _height:uint

Useful for storing "real" stage height if you're scaling your preloader graphics.

_widthproperty 
protected var _width:uint

Useful for storing "real" stage width if you're scaling your preloader graphics.

classNameproperty 
public var className:String

This should always be the name of your main project/document class (e.g. GravityHook).

ImgLogoproperty 
protected var ImgLogo:Class

ImgLogoCornersproperty 
protected var ImgLogoCorners:Class

ImgLogoLightproperty 
protected var ImgLogoLight:Class

minDisplayTimeproperty 
public var minDisplayTime:Number

Change this if you want the flixel logo to show for more or less time. Default value is 0 seconds.

myURLproperty 
public var myURL:String

Set this to your game's URL to use built-in site-locking.

Constructor Detail
FlxPreloader()Constructor
public function FlxPreloader()

Constructor

Method Detail
create()method
protected function create():void

Override this to create your own preloader objects. Highly recommended you also override update()!

destroy()method 
protected function destroy():void

update()method 
protected function update(Percent:Number):void

Override this function to manually update the preloader.

Parameters

Percent:Number — How much of the program has loaded.