|
|
||||||||
| Ultrashock Tutorials > Flash MX 2004 > Flash MX 2004 UI Components | ||||||||
|
||||||||
|
|
Flash MX 2004 UI Components |
|
||||||
10. Loader and Progress Bar ComponentsThe Loader and Progress Bar compoents are two components that you will probably end up using together quite often. The Loader component, as evident from its name, loads in external images (JPGs) and Flash movies (SWFs). The Progress Bar can either interface automatically with a Loader component or be manually updated to display load progress. In the following example, you will see how to use the Loader and Progress Bar components together to load in an external SWF. The external SWF you will be loading in is called loader_content.swf and is part of your downloaded source materials (make sure you copy it into your working directory for this example to work.)
You may notice that in Step 5, you created a listener for the Loader component instead of the Progress Bar, although the latter would have more sense. The reason for this is that there appears to be a bug in Flash MX 2004 where the Progress Bar component does not fire a complete event, although the documentation mentions that it should. The screenshot below shows the external SWF that gets loaded in.
|
||||||||
©2003 Ultrashock.com - All rights reserved |