My account
Shopping cart
Knowledge base
Support


Loader Pro V3 Properties



Overview | Properties | Methods | Events | XML

Most these properties can also be set from XML, using the xmlPath optional parameter. They can also be set in the Component Inspector (Alt + F7)

 
Property Type/
Component Inspector
Description
builtInPreloader String
Yes
Sets the type of the bulit-in preloader/progress display. Values: [bar, line, circle, none]

Default: none

Usage:
loaderInstance.builtInPreloader = "bar"
content MovieClip
No
Used to get reference the content loaded inside the Loader Pro V3 (the content property cannot be written, it is read only, the content changes every time the loader loads a new contentPath)

Usage:
loaderInstance.content
contentPath String
Yes
Sets the path of the visual object to be loaded. It can be either a linkage movieclip id, an external swf, jpg, gif, png.
Note: Set this parameter only after you set all other parameters.

Usage:
loaderInstance.contentPath = "myImage.jpg"
delay Number
Yes
The number of seconds until the transition is over.

Default:1

Usage:
loaderInstance.delay = 2.5
halign String
Yes
The type of horizontal alignment. Values: [left, center, right]

Default: center

Usage:
loaderInstance.halign = "center"
height Number
No
Used to resize the loader's height in runtime without affecting the _yscale of the loader. The loader will than align and resize (if needed) the content in order to show the new size.

Usage:
loaderInstance.height = 120
preloaderColor Number
Yes
Sets the color of the built-in preloader and percentage.

Default: 0xFFFFFF

Usage:
loaderInstance.preloaderColor = 0xFACC00
scaleMode String
Yes
The mode of the scaling applied to the content in rapport with the sizes of the loader. Values: [scale, resize, crop, scaleCrop, none]

Default: resize

Usage:
loaderInstance.scaleMode = "scale"
showPercentage Boolean
Yes
Sets the visible property of the bulit-in percentage display.

Default: false

Usage:
loaderInstance.showPercentage = true
transitionType String
Yes
The type of the transition that will apply when content is loaded. Values:[fade, alpha, none, MCTE, MCTEfade] Use MCTE when using the MCTE V3 along with the Loader Pro V3.

Default: none

Usage:
loaderInstance.transitionType = "fade"
valign String
Yes
The type of vertical alignment. Values: [top, middle, bottom]

Default: middle

Usage:
loaderInstance.valign = "middle"
width Number
No
Used to resize the loader's width in runtime without affecting the _xscale of the loader. The loader will than align and resize (if needed) the content in order to show the new size.

Usage:
loaderInstance.width = 200
xmlPath String
Yes
Optional parameter, sets the path to a XML file that can configure the Loader Pro v3. If the xmlPath is set, all parameters set from script or Component Inspector will be overwritten by their correspondents from XML.

Usage:
loaderInstance.xmlPath = "config/loaderConfig.xml"

Overview | Properties | Methods | Events | XML