MACROMEDIA FLASH MX 2004-USING ACTIONSCRIPT IN FLASH Use Manual page 111

Using actionscript in flash
Hide thumbs Also See for FLASH MX 2004-USING ACTIONSCRIPT IN FLASH:
Table of Contents

Advertisement

Give users a certain amount of control (such as the ability to stop, pause, play, and resume the
video, and control volume) over the video in a SWF file. For more information on using video in
Flash, see "Working with Video" in Using Flash.
Importing and embedding video
You can embed video in a SWF file by importing it into your FLA document. You can import the
video directly into the library, where it is stored as an embedded video. You can also import the
footage directly onto the main Timeline or into a movie clip. When you place video on the
Timeline by importing or dragging it from the library, a dialog box appears prompting you to
extend the current Timeline by a specified number of frames.
You might need flexibility over your video, such as manipulating it or syncing various parts of it
with the Timeline. If you need flexibility or advanced control, you should embed your video in
the SWF file rather than loading it using ActionScript or one of the Media components.
When you work with embedded video, a best practice is to place video inside a movie clip
instance, because you have the most control over the content. The video's Timeline plays
independently from the main Timeline. You do not have to extend your main Timeline by many
frames to accommodate for the video, which can make working with your FLA file difficult.
To import video:
Select File > Import > Import to Library.
1.
Select the video footage that you want to import.
2.
Step through the Video Import wizard to edit, compress, and embed the video.
3.
The video is placed in the library. This process is the recommended way to import video, because
it gives you the most control over how you work with the video and where you place it in the FLA
file.
Exporting FLV files
You can export FLV files from Flash MX 2004 and Flash MX Professional 2004 authoring
environments. After you import video into your document, it appears as a video symbol in the
library.
FLV files use the FLV mime type
upload your files, check that this mime type is set on your server. FLV files are binary, and some
applications that you build might require that the
set. For more information on the Flash Player specifications, see
http://download.macromedia.com/pub/flash/flash_file_format_specification.pdf.
To export video as an FLV file:
Select the video symbol in the library, right-click (Windows) or Control-click (Macintosh), and
1.
select Properties from the context menu.
Click Export in the Embedded Video Properties dialog box to open the Export FLV dialog box.
2.
Enter a name for the file, and select a location to save it.
3.
Click Save, and the video is exported as an FLV file.
4.
. If you have difficulty viewing FLV files after you
video/x-flv
application/octet-stream
subtype is also
Video conventions
111

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-USING ACTIONSCRIPT IN FLASH and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents