Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

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:
 
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.
 
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.
 
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.
 
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
 
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.