ActionScript 2.0 Components Language Reference |
|
|
|
| Loader component > Using the Loader component > Creating an application with the Loader component | |||
The following procedure explains how to add a Loader component to an application while authoring. In this example, the loader loads a logo JPEG from an imaginary URL.
To create an application with the Loader component:
To create a Loader component instance using ActionScript:this.createClassObject(mx.controls.Loader, "my_loader", 1); my_loader.contentPath = "http://www.helpexamples.com/flash/images/image1.jpg";
This script uses the method UIObject.createClassObject() to create the Loader instance.
|
|
|
|