Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: Different Methods of Sound Toggle
From: Marc Hoffman
Date: Fri, 24 Jul 1998 20:53:25 +0100

At 05:36 PM 7/23/98 -0500, you wrote:
>I'm still requesting information about the different ways to toggle
>sound in Flash 3? Supposedly and possibly a button, that allows user to
>turn sound on and off?
>

This is how I place buttons in my movie, each one controlling a looping
sound independent of all other sounds ( if this looks familiar, it's
because I posted it some time ago):

FIRST: create a button to associate with the particular sound loop,
with its up, over, release, and hit states. Exit the button editing window.

SECOND: create a symbol that's a movie clip. Give it two frames and three
layers.
In layer 1, place the button in frame one and add an identical instance in
frame two
by adding a keyframe.
In layer 2, place your sound. I start with it off, so frame one's
properties (under the "sound" tab)
has the specific sound listed but Sync is set to "Stop." Frame two's
properties lists the sound, Sync is
"event" and Loops is set high (I use 999). Effect can be whatever you
like. I often create a fade
in for the first second or two of the sound. Note: to change it so the
sound is On by default, just
swap the actions of the two frames in this layer.
Layer 3 holds frame actions. Frame 1 says "Stop." Frame 2 says "Stop."
Now put the playback head over frame 1 and double click the button on the
stage.
Assign it this action:
On (Release)
Go to Next Frame
End On
Now put the playback head over frame 2 and double click the button on the
stage.
Assign it this action:
On (Release)
Go to Previous Frame
End On
Exit the editing window. Place the clip you've just made anywhere on your
movie stage.
It can even move around if you want it to. When the user clicks on it, it
will either start or
stop the sound that has been placed in it. It won't affect any other sounds.

This structure can be used for any kind of on/off event, not just sound.
For example,
in layer 2, you could have an animated object (movie clip) in frame 1 and a
non-animated
version of the same object in frame 2. The effect of the button would then
be to
freeze and restart the animation.




*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

Marc Hoffman
Poison Dart Frog Music
Digital Audio Production Services
& Interactive Multimedia Design

*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

------------------------------------------------------------------------
To UNSUBSCRIBE send: unsubscribe flasher in the body of an
email to list-manageratshocker [dot] com. Problems to: owneratshocker [dot] com
N.B. Email address must be the same as the one you used to subscribe.
For info on digest mode send: info flasher to list-manageratshocker [dot] com


Replies
  Different Methods of Sound Toggle, DeAndre' Littlejohn [ CTO

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]