Flasher Archive

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


Subject: RE: FLASH: BEST WAY TO TURN OFF SOUNDS ON LEVELS?
From: Dave Hollinden
Date: Mon, 17 Jan 2000 21:48:32 GMT

You can keep track of the current sound file's name in a variable, such as:

Set Variable: "currentsound" = "musicfile2"

Then when you need to turn off the sound, your sound on/off button performs
these actions:

On (Release)
Begin Tell Target ("_level10")
Go to and Stop (Eval(/:currentmusic) & off)
End Tell Target
End On


and to turn it back on:

On (Release)
Begin Tell Target ("_level10")
Go to and Stop (Eval(/:currentmusic) & on)
End Tell Target
End On

Of course, in your music.swf (that I've assumed you've loaded into level
10), you have to have a label for musicfile2on where you place the sound
file set to loop, and a label musicfileoff where you place the same sound
file with the Sync set to Stop.

Dave Hollinden
Web Design Team Lead
dhollindenatsonicfoundry [dot] com

-----Original Message-----
From: David Doggett [daveatfunmark [dot] com (mailto:daveatfunmark [dot] com)]
Sent: Monday, January 17, 2000 10:28 AM
To: flasheratchinwag [dot] com
Subject: Re: FLASH: BEST WAY TO TURN OFF SOUNDS ON LEVELS?


What about if I am using multiple music loops and after I turn one off I
need to know the last one that played and play it again when the user turns
the music back on?

What is the best way to achieve this?

Thanks
----- Original Message -----
From: Dave Hollinden <dhollindenatSonicFoundry [dot] com>
To: <flasheratchinwag [dot] com>
Sent: Monday, January 17, 2000 12:03 PM
Subject: RE: FLASH: BEST WAY TO TURN OFF SOUNDS ON LEVELS?


> Unloading the level is good if you don't intend to use the music or
> narration again because it frees up RAM.
>
> If you want the option to play the music again, for instance, then include
a
> new key frame in music.swf labelled Off. In that keyframe, place your
music
> sound file, but in the Sound Properties dialog box set the Sync property
to
> Off. Then when you want the music to stop, do a TellTarget to _levelX
with
> the action Goto and Stop Label Off.
>
> Dave Hollinden
> Web Design Team Lead
> dhollindenatsonicfoundry [dot] com
>
> flasher is generously supported by...
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Streaming Media WEST '99 Conference & Exhibition
> "The Worlds largest Internet Audio & Video Event"
> December 7 - 9, San Jose Convention Center, California
>
> Reserve your space today at http://www.streamingmedia.com
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> To unsubscribe or change your list settings go to
> http://www.chinwag.com/flasher or email helpatchinwag [dot] com
>



flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Streaming Media WEST '99 Conference & Exhibition
"The Worlds largest Internet Audio & Video Event"
December 7 - 9, San Jose Convention Center, California

Reserve your space today at http://www.streamingmedia.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Streaming Media WEST '99 Conference & Exhibition
"The Worlds largest Internet Audio & Video Event"
December 7 - 9, San Jose Convention Center, California

Reserve your space today at http://www.streamingmedia.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: Frame Rates?, Matt Runo
  FLASH: Looping sounds, Matt Runo
  Re: FLASH: BEST WAY TO TURN OFF SOUNDS O, David Doggett

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