MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual page 503

Using components
Hide thumbs Also See for FLASH MX 2004-USING COMPONENTS:
Table of Contents

Advertisement

Using the Component inspector with media components
The Component inspector makes it easy to set media component parameters, properties, and so
on. To use this panel, click the desired component on the Stage and, with the Property inspector
open, click Launch Component Inspector. The Component inspector can be used for the
following purposes:
To automatically play the media (see
To keep or ignore the media's aspect ratio (see
To determine if the media will be automatically sized to fit the component instance (see
Media.autoSize
To enable or disable the chrome background (see
To specify the path to your media in the form of a URL (see
To specify the visibility of the playback controls (see
To add cue point objects (see
To delete cue point objects (see
To set the orientation of MediaController instances (see
To set the type of media being played (see
To set the play time of the FLV media (see
To set the last few digits of the time display to indicate milliseconds or frames per second (fps)
It is important to understand a few concepts when working with the Component inspector:
The video time control is not available when you select an MP3 video type, because this
information is automatically read in when MP3 files are used. For FLV files created with Flash
Video Exporter 1.0, you must enter the total time of the media (
for the playbar of the MediaPlayback component (or any listening MediaController
component) to accurately reflect play progress. FLV files created with Flash Video Exporter 1.1
or later set the duration automatically.
With the file type set to FLV, you'll notice a Milliseconds option and (if Milliseconds is
unselected) a Frames Per Second (FPS) pop-up menu. When Milliseconds is selected, the FPS
control is not visible. In this mode, the time displayed in the playbar at runtime is formatted as
HH:MM:SS.mmm (H = hours, M = minutes, S = seconds, m = milliseconds), and cue points
are set in seconds. When Milliseconds is unselected, the FPS control is enabled and the playbar
time is formatted as HH:MM:SS.FF (F = frames per second), while cue points are set in frames.
Note: You can set the FPS value only by using the Component inspector. Setting an fps value by
using ActionScript has no effect and is ignored.
Controlling media components by using behaviors
Behaviors are prewritten ActionScript scripts that you add to an instance, such as a MediaDisplay
component, to control that object. Behaviors let you add the power, control, and flexibility of
ActionScript coding to your document without having to create the ActionScript code yourself.
504
Chapter 6: Components Dictionary
Media.activePlayControl
)
Media.addCuePoint()
Media.removeCuePoint()
Media.aspectRatio
Media.backgroundStyle
Media.contentPath
Media.controllerPolicy
)
)
Media.horizontal
)
Media.setMedia()
)
Media.totalTime
and
Media.autoPlay
)
)
)
)
)
) in order
Media.totalTime
)

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx

Table of Contents