|
Introduction
Cool Focus Flash applets are primarily designed to be used directly on an HTML page by using <object> and <embed> tags. However, they can also be incorporated into your own Flash movies if you use Macromedia Flash MX (v6.0) or later. Some knowledge of ActionScript is needed, but the scripting is quite simple and explained in this documentation (using ActionScript 1.0).
All Cool Focus applets are incorporated into your movies in the same way, and generally offer the same properties, functions and events. This documentation explains how to load and use any Cool Focus applet in your movie in general terms, along with specific details for each applet in the Applet Index section.
To begin, here's a short overview that applies to every applet:
- The applets are not components they can't be imported to your Library.
- Applets are loaded dynamically at runtime by creating an empty MovieClip and using loadMovie() to load the applet's SWF file.
- Applets continue to use an external file containing parameters (usually an INF file) which we refer to as the 'datafile'.
- The datafile used when loading an applet into your movie is identical to the datafile used when the applet is placed on a web page.
- Apart from the applet's X and Y position on the Stage and its z-order (depth), all its settings and options are contained in its datafile.
- Applets can pass events to your movie for handling; you can use those events to control other aspects of your movie.
- Applets expose several properties that can be accessed by your movie, such as the applet's dimensions.
- Only registered Cool Focus applets may be incorporated into your own movies. Unregistered applets may be used only for evaluation and site-development on a private server.
|