Flasher Archive

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


Subject: RE: FLASH: Looping sounds
From: Eric Dunham
Date: Tue, 18 Jan 2000 03:49:22 GMT

Well...I might just be taking a shot in the dark here...
But what if you had the sound setup in a do...until loop and then had the
click event kill the loop,
and then have the next statement after the loop be a "fading" version of
that sound (?)
Maybe some pseudocode would help: (I don't do much programming in Flash yet,
so you'll have to excuse my syntax)
//
Do
Play(Sound)
Until KillSound = True
Play(FadeSound)
//
Then you could easily have the button set the KillSound variable to true.
I know that all loops (especially potentially infinite ones) are processor
intensive,
and I don't know if you could access the javascript setTimeout() function,
but it would be a lot better if you could.
Again, I don't really know if this is possible with Flash, but it seems to
me like you would be able to have a function/FSCommand that would be able to
control the sound and then also be able to kill it. Like you could have a
simple function like.
if(!killsound)
{
mysound.play();
setTimeout("mysound",X);
//X is the length of your sound clip in milliseconds
}
else if(killsound)
{
myfadingsound.play();
}
The logic is good (or maybe I'm just too tired to see it), but I just don't
know if it can be done in Flash.
Hope that helps,
Eric Dunham

-----Original Message-----
From: owneratchinwag [dot] com [owneratchinwag [dot] com]On">mailto:owneratchinwag [dot] com]On Behalf Of D
Sent: Monday, January 17, 2000 9:16 PM
To: flasheratchinwag [dot] com
Subject: Re: FLASH: Looping sounds


Not possible....

You need to have a constant loop... then use a "masking sound" like a bang
or something to hide the skip of when you start your loop again as a single
instance (which you can fade out)

-dk-

----- Original Message -----
From: "Matt Runo" <atomicatworldnet [dot] att [dot] net>
To: <flasheratchinwag [dot] com>
Sent: January 17, 2000 6:37 PM
Subject: FLASH: Looping sounds


> Hi-
> How do I loop a sound forever, then fade it out when the user clicks
on
> a button? I know how to set it to loop, say, 12 times, but how do I get it
> to loop untill it's told to fade out?
>
> Thanks!
>
> Matt Runo
>
>
>
> 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
  RE: FLASH: Looping sounds, Marc Hoffman, Poison Dart

Replies
  Re: FLASH: Looping sounds, D

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