Using The Sound-Editing Controls; Controlling Sound Playback Using Behaviors - MACROMEDIA FLASH MX 2004-USING FLASH Use Manual

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

Advertisement

For more information on using the ID3 properties, see
Reference.

Using the sound-editing controls

To define the starting point of a sound or to control the volume of the sound as it plays, you use
the sound-editing controls in the Property inspector.
Flash can change the point at which a sound starts and stops playing. This is useful for making
sound files smaller by removing unused sections.
To edit a sound file:
Add a sound to a frame (for more information, see
1.
on page
203), or select a frame that already contains a sound.
Select Window > Properties.
2.
Click the Edit button on the right side of the Property inspector.
3.
Do any of the following:
4.
To change the start and end points of a sound, drag the Time In and Time Out controls in
the Edit Envelope.
To change the sound envelope, drag the envelope handles to change levels at different
points in the sound. Envelope lines show the volume of the sound as it plays. To create
additional envelope handles (up to eight total), click the envelope lines. To remove an
envelope handle, drag it out of the window.
To display more or less of the sound in the window, click the Zoom In or Out buttons.
To switch the time units between seconds and frames, click the Seconds and
Frames buttons.
To hear the edited sound, click the Play button.
5.

Controlling sound playback using behaviors

You can control sound playback using sound behaviors. Behaviors are prewritten ActionScript
scripts that you apply to an object, such as a button, to control a target object, such as a sound.
Behaviors enable you to add the power, control, and flexibility of ActionScript coding to your
document without having to create the ActionScript code yourself.
You can use the Load Sound from Library or Load Streaming MP3 File behaviors to add a sound
to your document. Adding a sound using these behaviors creates an instance of the sound. The
instance name is then used to control the sound.
The Play Sound, Stop Sound, and Stop All Sounds behaviors let you control sound playback. To
use these behaviors, you must first load a sound with one of the Load behaviors. To play or stop a
sound with a behavior, you use the Behaviors panel to apply the behavior to a triggering object,
such as a button. You specify the event that triggers the behavior (such as clicking the button),
select a target object (the sound to be affected by the behavior), and select settings for the
behavior parameters to specify how the behavior executes.
206
Chapter 11: Working with Sound
in Flash ActionScript Language
Sound.id3
"Adding sounds to a document"

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents