Using skins with the Loader component
The Loader component uses an instance of RectBorder for its border (see
on page
647).
Loader class
Inheritance
MovieClip >
ActionScript Class Name
The properties of the Loader class let you set content to load and monitor its loading progress at
runtime.
Setting a property of the Loader class with ActionScript overrides the parameter of the same name
set in the Property inspector or Component inspector.
Each component class has a
available only on the class itself. The
of the component. To access this property, use the following code:
trace(mx.controls.Loader.version);
Note: The code
trace(myLoaderInstance.version);
Method summary for the Loader class
The following table lists the method of the Loader class.
Method
Loader.load()
Methods inherited from the UIObject class
The following table lists the methods the Loader class inherits from the UIObject class. When
calling these methods from the Loader object, use the form
Method
UIObject.createClassObject()
UIObject.createObject()
UIObject.destroyObject()
UIObject.doLater()
UIObject.getStyle()
UIObject.invalidate()
UIObject.move()
UIObject.redraw()
UIObject.setSize()
486
Chapter 6: Components Dictionary
UIObject class
>
UIComponent class
mx.controls.Loader
property, which is a class property. Class properties are
version
property returns a string that indicates the version
version
Description
Loads the content specified by the
Description
Creates an object on the specified class.
Creates a subobject on an object.
Destroys a component instance.
Calls a function when parameters have been set in the Property and
Component inspectors.
Gets the style property from the style declaration or object.
Marks the object so it will be redrawn on the next frame interval.
Moves the object to the requested position.
Forces validation of the object so it is drawn in the current frame.
Resizes the object to the requested size.
> View > Loader
returns
.
undefined
contentPath
LoaderInstance.methodName
"RectBorder class"
property.
.
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?
Questions and answers