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" |
Property | Type/ Component Inspector |
Description |
imageSmoothing | Boolean Yes |
Activates or deactivates image smoothing on the currently loaded content. Default: false Usage: componentInstance.imageSmoothing = true; |
reflection | Boolean
Yes |
Displays or hides the reflection for the loader instance. Default: false Usage: componentInstance.reflection = true; |
reflectionDistance | Number
Yes |
The distance between the loader instance and the reflection. Default: 0 Usage: componentInstance.reflectionDistance = 5; |
reflectionPosition | String
Yes |
The position of the reflection. Values: [top, bottom, left, right] Default: Bottom Usage: componentInstance.reflectionPosition = "Top"; |
reflectionRatio | Number
Yes |
The ratio of the gradient used to create the reflection (the size of the reflection). Values range from 0 to 255. Default: 128 Usage: componentInstance.reflectionRatio = 100; |
reflectionStartAlpha | Number Yes |
The start value of the alpha transparency for the reflection. Values range from 0 to 1. Default: 1 Usage: componentInstance.reflectionStartAlpha = 0.7; |
reflectionUpdateInterval | Number
Yes |
The interval at which the reflection object will updated with the current content of the loader (measured in frames). Default: 50 Usage: componentInstance.reflectionUpdateInterval = 2; |
source | String
Yes |
Sets the path of the visual object to be loaded. It can be either a linkage movie clip id, an external swf, jpg, gif, png. Usage: loaderInstance.source = "myImage.jpg"; |
Overview | Properties | Methods | Events | XML