Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
| Subject: | Re: FLASH: buttons and sounds |
| From: | Marc Hoffman, Poison Dart Frog Media |
| Date: | Fri, 11 Feb 2000 16:27:19 GMT |
At 07:59 AM 2/11/00 , you wrote:
>Is there a way of having multiple buttons eg 5, each playing a different
>sound in a movie but limiting the user to only being able to play one
>sound at a time and remaining buttons won't work until the previous sound
>has finished playing? At the moment if more than one button is clicked the
>sounds are merging.
Sounds complicated. Here's one way:
- Each sound is in a movie clip and is set to "stream." It is triggered by
TellTarget.
- When a button is pressed, it forces the other buttons to go to a
different instance where their behavior is "graphic" instead of button,
hence they won't be active. This can be done by putting each button (with
two instances) in a 2-frame movie clip and using TellTarget to swap instances.
- When each sound's movie clip is done playing, it can TellTarget all the
buttons to become active again.
A simpler scheme but not quite the effect you described is that when each
button is pressed it has a Stop All Sounds action and also uses TellTarget
to play a movie clip that contains the associated sound starting in that
movie clip's second or third frame. But this won't let each sound finish --
it will clip the sounds if buttons are pressed in rapid succession.
Marc Hoffman
Poison Dart Frog Media: Specializing in Flash Animation and Digital Audio
Production
Our latest Flash job is on display at <http://www.dartfrogmedia.com/rickfrnd>
See our Flash portfolio at <http://www.dartfrogmedia.com/sampler>
(featured in Flash 3 Web Animation, by Ken Milburn)
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and The Flash Film Festival
"The World�s Premier Flash Solutions Conference and Expo"
March 27-29, Nob Hill Masonic Center, San Francisco, California
-Register before Feb 25 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email help
Replies
FLASH: buttons and sounds, Paul Askins
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]

