How do I keep a sound from repeating (Flash MX)

Cooknn

macrumors 68020
Original poster
Aug 23, 2003
2,111
0
Fort Myers, FL
I'm adding a sound to the timeline in Flash MX 2004 but no matter what I do it always starts over again when it's done. How do I get it to play just once? I have sync set to event and repeat is at 0. Help :eek:
 

dornoforpyros

macrumors 68040
Oct 19, 2004
3,070
3
Calgary, AB
ahh yes, sound in flash, Never a fun task. But I believe there is something in actionscript along the lines of stop all sounds. I can't remember the code right now but if you look up the sound object in the acionscript dictionary(under help) you should find it.
 

Cooknn

macrumors 68020
Original poster
Aug 23, 2003
2,111
0
Fort Myers, FL
dornoforpyros said:
ahh yes, sound in flash, Never a fun task. But I believe there is something in actionscript along the lines of stop all sounds. I can't remember the code right now but if you look up the sound object in the acionscript dictionary(under help) you should find it.
Thanks, I'll look into that.
 

_bnkr612

macrumors 6502a
Mar 8, 2004
619
0
Running into the same issues with this site. I am getting the code for it tomorrow...

...no audio running right now, 97% finished

I do know it's a global function that runs over the scenes so one song can play continuously throughout scene transitions.

One way that might work would be to make the audio player a seperate SWF file and drop that into a layer below the actions layer.

I'll get back to you and likewise!

Cheers.
 

neut

macrumors 68000
Nov 27, 2001
1,843
0
here (for now)
Cooknn said:
I'm adding a sound to the timeline in Flash MX 2004 but no matter what I do it always starts over again when it's done. How do I get it to play just once? I have sync set to event and repeat is at 0. Help :eek:
do you have a stop(); frame in your movie?

your sound settings are correct; stream would also work. :)


peace | neut
 

Poeben

macrumors 6502
Jul 29, 2004
346
0
Sounds like a stop(); action might do the trick. However, the best way to control sounds in flash is using actionscript. I don't know what you are trying to accomplish, so it may be a bit overboard but I have had nothing but trouble dragging sounds onto the timeline. Once you learn the AS it's not too bad to deal with...

It's been a while, but I would recommend checking out kirupa.com for help and tutorials with flash.