About Controlling Video Playback Using The Timeline; Media Components (Flash Player 6 And 7) - MACROMEDIA FLASH 8-USING FLASH Use Manual

Using flash
Table of Contents

Advertisement

About controlling video playback using
the Timeline
You can control playback of an embedded or linked video file by controlling the Timeline that
contains the video. For example, to pause a video playing on the main Timeline, you would
call a
action that targets that Timeline. Similarly, you can control a video object in a
stop()
movie clip symbol by controlling the playback of that symbol's Timeline.
You can apply the following actions to imported video objects in movie clips:
,
stop
toggleHighQuality
,
unloadMovie
ifFrameLoaded
must first convert the Video object to a movie clip. For more information, see Video in
ActionScript 2.0 Language Reference.
You can also use ActionScript to show a live video stream from a camera. First, use the New
Video Object in the Library panel to place a Video object on the Stage. Then use
Video.attachVideo
see
attachVideo (Video.attachVideo method)
Media components (Flash Player 6
and 7)
The media components were introduced in Flash MX Professional 2004. If you are
developing content for use with Flash Player 8, you should instead use the FLVPlayback
component introduced in Flash Professional 8. The FLVPlayback component provides
improved functionality, giving you more control over video and audio playback within the
Flash environment. To learn more about the FLVPlayback component, see
FLVPlayback component (Flash Professional only)" on page
The media component suite consists of three components: MediaDisplay, MediaController,
and MediaPlayback. With the MediaDisplay component, adding media to your Flash
documents is as simple as dragging the component to the Stage and configuring it in the
Component inspector. In addition to setting the parameters in the Component inspector, you
can add cue points to trigger other actions. The MediaDisplay component has no visual
representation during playback; only the video clip is visible.
308
Working with Video
,
stopAllSounds
, and
onMouseEvent
to attach the video stream to the Video object. For more information,
in ActionScript 2.0 Language Reference.
,
getURL, FScommand
. To apply actions to a Video object, you
,
goTo
play
,
,
loadMovie
"Using the
304.
,

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents