User Guide

818 Loader component
Methods inherited from the UIComponent class
The following table lists the methods the Loader class inherits from the UIComponent class.
When calling these methods from the Loader object, use the form
LoaderInstance.methodName.
Property summary for the Loader class
The following table lists properties of the Loader class.
UIObject.redraw() Forces validation of the object so it is drawn in the current
frame.
UIObject.setSize() Resizes the object to the requested size.
UIObject.setSkin() Sets a skin in the object.
UIObject.setStyle() Sets the style property on the style declaration or object.
Method Description
UIComponent.getFocus() Returns a reference to the object that has focus.
UIComponent.setFocus() Sets focus to the component instance.
Property Description
Loader.autoLoad A Boolean value that indicates whether the content loads
automatically (
true) or you must call Loader.load() (false).
Loader.bytesLoaded A read-only property that indicates the number of bytes that
have been loaded.
Loader.bytesTotal A read-only property that indicates the total number of bytes
in the content.
Loader.content A reference to the content of the loader. This property is
read-only.
Loader.contentPath A string that indicates the URL of the content to be loaded.
Loader.percentLoaded A number that indicates the percentage of loaded content.
This property is read-only.
Loader.scaleContent A Boolean value that indicates whether the content scales to
fit the loader (
true), or the loader scales to fit the content
(
false).
Method Description