Field Summary |
public
| addEventListener: Function |
| See the EventDispatcher Class in Flash Help
|
|
public
| loadHandler: Function |
| Can be used to assign a direct event handler to the component instance.
|
|
public
| progressHandler: Function |
| Can be used to assign a direct event handler to the component instance.
|
|
public
| removeEventListener: Function |
| See the EventDispatcher Class in Flash Help
|
|
|
Property Summary |
public
| autoLoad: Boolean (write)
|
| Sets the autoload mode of the component. If true, content will begin loading as soon as the url property is set. If false, you must call load to begin loading content.
|
|
public
| autoLoad: Boolean (read)
|
| Gets the autoload mode of the component.
|
|
public
| autoScale: Boolean (write)
|
| Sets the autoload mode of the component. If true, the content will scale to the size of the loader component, as set in the authoring environment, or by use of setSize, width or height. If false, content will display at full size.
|
|
public
| autoScale: Boolean (read)
|
| Gets the autoload mode of the component.
|
|
public
| content: MovieClip (read-only)
|
| Gets the content of the component.
|
|
public
| progress: Number (read-only)
|
| A value from 0 to 100, representing the amount of content that has successfully loaded in.
|
|
public
| url: String (write)
|
| Sets the url for the content (swf or jpg) to be loaded.
|
|
public
| url: String (read)
|
| Gets the url of the content (swf or jpg).
|
|
|
Constructor |
public
| Loader (
Void)
|
|
|
|
Method Summary |
public static
| create (
target: MovieClip, id: String, depth: Number, initObj: Object
): Loader |
| Static method used to create an instance of a Loader on stage at run time.
|
|
public
| load (
Void
): Void |
| Begins loading the content specified in the url property. If autoLoad is set to false, content will not begin loading until this method is called. If autoLoad is true, this method is not necessary, as content will begin loading immediately after setting the url.
|
|
|
|