all groups > flash (macromedia) > august 2007 >
You're in the

flash (macromedia)

group:

Playing/Stopping audio


Playing/Stopping audio derbys1
8/5/2007 9:58:59 PM
flash (macromedia):
Hi again, starting to be a pain im guessing. Anyway, i have a flash file that
has quite a large number of frames and layers. Im wanting to play a different
piece of audio for each of the layers (its basically audio for questions) with
the chance to pause and start the audio at any time,

What would be the simplest way of doing this? It probably doesn't make much
sense reading back.
Re: Playing/Stopping audio clbeech
8/5/2007 11:53:34 PM
Starting and Stopping audio is not particularly difficult, and there are
several ways add and control sound. If your audio clips are relatively small,
you could use a the standard Sound Object class. However if your clips are
longer or there are tons of them, you may want to stream them in and use a
MediaPlayback and MediaController Component(s).

You can look these up in the Flash Help menu:

Flash Help>>ActionScript>>ActionScript Laguage Reference>>ActionScript
Classes>>Sound

Flash Help>>Components>>Component Laguage Reference>>Media components


AddThis Social Bookmark Button