8.
Save the Flash document.
9.
Select File > Publish Settings and then select the Formats tab, and make sure that HTML
and Flash are both selected.
10.
Click Publish to publish the SWF and HTML files to your hard disk.
When you're finished, go on to the next procedure to create the container for the
SWF file.
You can find the sample source file, external.fla, in the Samples folder on your hard disk.
In Windows, browse to boot drive\Program Files\Macromedia\Flash 8\Samples and
Tutorials\Samples\ActionScript\ExternalAPI.
On the Macintosh, browse to Macintosh HD/Applications/Macromedia Flash 8/Samples
and Tutorials/Samples/ActionScript/ExternalAPI.
In the following procedure, you modify the HTML code generated by Flash in the previous
procedure. This procedure creates the JavaScript and HTML required to make the FLV files
play back within the SWF file.
To create the container for the SWF file:
1.
Complete the previous procedure.
2.
Open the video.html document that you published in the last step of the
previous procedure.
3.
Modify the existing code so that it matches the following code:
Review the code comments in the following example. A code overview follows this
code example.
About the External API
673
Need help?
Do you have a question about the FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH and is the answer not in the manual?