Flasher Archive

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


Subject: Re: FLASH: sound on and off problem ???
From: Marc Hoffman
Date: Tue, 17 Nov 1998 15:55:23 +0000 (GMT)

At 07:30 PM 11/17/98 +0000, you wrote:
>Today i was making a movie and as all flash Gurus have a sound ON and
>OFF button in there movies, i also made one but it was easy for me to
>switch off the sound from actions menu.
>But how do i turn it ON??
>And how is the button changing to an icon which represents the sound is
>ON or OFF ???
>

Hi Brajesh:


Here's one way to construct a sound on/ sound off function:

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 three frames and
three layers.
In layer 1, place the button in frame one.
In layer 2, frame 1, 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.) Frame 3 has no keyframe.
Layer 3 holds frame actions. Frame 1 says "Stop." Frame 2 says "Stop."
Frame 3 says "Go to Frame 1."
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
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.

NOTE: sometimes it's best to put a sound in its own movie, especially if
it's a large file size. In that case, just construct the above clip as a
separate movie and load it on top of your main movie.

To make the clip indicate if the sound is ON or OFF, place text in a
higher layer. Frame 1 type "turn sound ON" and in frame two (new keyframe)
type "turn sound OFF"


Marc Hoffman
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

View my Flash3 work: <http://www.jps.net/dartfrog/sampler>.
Play a virtual marimba: <http://www.jps.net/dartfrog>.
Find out where my band performs: <http://www.jps.net/dartfrog/littlebird>.
Complain about self-promoting email signatures:
<marchofatjps [dot] net (subject: complaint) (mailto:marchofatjps [dot] net?subject=complaint)>

------------------------------------------------------------------------
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
  FLASH: sound on and off problem ???, brajesh

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