I was putting music in flash for an animation but when i stop the animation the music will just keep on playing. The worse part here is that whenever i test the movie(the movie always restart when your animation is done) the song keeps on repeating.Here's what I meant: http://www.truploader.com/view/520145 .First there's one song then after the animation the same song comes in and so on so fort. I need help.
Here's my action script:
sound1 = new Sound(); // “sound1″
sound1.start(); //
Edit: I'm using MACROMEDIA FLASH PROFESSIONAL 8.
What is the correct code for putting music in flash
Started by: Zero | Replies: 6 | Views: 429
Mar 26, 2010 10:40 AM #559463
Mar 26, 2010 12:24 PM #559474
You can just set it to stream in the properties panel and set numbers of repeats to 0.


Mar 26, 2010 1:33 PM #559480
Okay that fixed the repeating but then an error comes in when i test the movie. It says:
SWF contains multiple copies of a sound item. What does that mean?
SWF contains multiple copies of a sound item. What does that mean?
Mar 28, 2010 11:58 AM #560289
If you still have your actionscript set to start the sound, that could be the problem. Try deleting it. If it doesn't work, delete your sound file from the library and reimport it, and try again.
Mar 28, 2010 2:24 PM #560316
Okay.
(15 characters) -_-
(15 characters) -_-
Mar 28, 2010 2:28 PM #560317
Only 10 characters now, and you can get around it by pressing loads of spaces and then a full stop if you find that easier.
Mar 28, 2010 2:48 PM #560320
Hahaha. Oh yeah, now its 10. Thanks.