MACROMEDIA FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH Manual page 671

Learning actionscript 2.0 in flash
Table of Contents

Advertisement

You can find the sample source file, ExtInt.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\simple example.
On the Macintosh, browse to Macintosh HD/Applications/Macromedia Flash 8/Samples
and Tutorials/Samples/ActionScript/ExternalAPI/simple example.
For a more complex example that uses the External API, see
the External API" on page
file security and Flash Player" on page
Avoid using other methods of accessing the plug-in object, such as
document.getElementById("pluginName")
other methods do not work consistently across all browsers.
Controlling Flash Video with the External API
The following procedure shows you how to control Flash Video (FLV) files using controls in
an HTML page and displays information about the video in an HTML text field. This
procedure uses the External API to achieve this functionality.
To build a Flash application using the External API:
1.
Create a new Flash document and save it as video.fla.
2.
Add a new video symbol to the library by selecting New Video from the pop-up menu in
the Library panel.
3.
Drag the video symbol to the Stage and give it an instance name of selected_video.
4.
Select the
selected_video
to 320 pixels wide by 240 pixels high.
5.
Set both the x and y coordinates for the video's position to 0.
6.
Select the Stage and use the Property inspector to resize its dimensions to 320 pixels by
240 pixels.
Now the Stage matches the dimensions of the video instance.
671. For more information on local file security, see
679.
or
instance and then the Property inspector to resize the instance
"Controlling Flash Video with
document.all.pluginName
About the External API
"About local
, because these
671

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

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?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents