User Guide
846 Media components (Flash Professional only)
Creating applications with media
components (Flash Professional only)
Creating Flash content by using media components is quite simple and often requires only a
few steps. This example shows how to create an application to play a small, publicly available
media file.
To add a media component to an application:
1. In Flash, select File > New; then select Flash Document.
2. In the Components panel, double-click the MediaPlayback component to add it to
the Stage.
3. In the Property inspector, do the following:
■ Enter the instance name myMedia.
■ Click Launch Component Inspector.
4. In the Component inspector, enter http://www.helpexamples.com/flash/video/water.flv
in the URL text box.
5. Select Control > Test Movie to see the media play.
FLV or MP3
(
Media.mediaType)
String:
FLV or
MP3
FLV
Designates the type of media to be
played.
Milliseconds Boolean false Determines whether the playbar uses
frames or milliseconds, and whether the
cue points use seconds or frames.
When this option is selected, the FPS
control is disabled.
URL (
Media.contentPath) String undefined A string that holds the path and
filename of the media to be played.
Video Length
(
Media.totalTime)
Integer undefined The total time needed to play the FLV
media. This setting is required for the
playbar to work correctly.
Name Type Default
value
Description