Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding music to Flash mx movie HELP ASAP !!!!!!!!

Status
Not open for further replies.

bcsguy

Technical User
May 31, 2002
23
US
I can add simple button sounds, but I want to add music to the movie to give more depth and meaning to the cd-rom yearbook I'm making. I've tried to import mp3's into the movie, and the program always gives me the "working" message
but nothing ever shows up on the timeline. Please help!!!
 
bcsguy,
there are a couple of ways to add music to a flash movie,
you can simply import it and then in the properties pane just select the file you want to play of the movieclip, button, or frame action. You can also do it more dynamically so you can control it better by doing the following,after you import it select export for actionscripting then give it a name in this exapmle i will call it "Music1" then in the frame or button action just add this code

Music = new Sound();
Music.attachSound("Music1");
Playing=false;

to start it simply
Music.start();
to stop
Music.stop();

the Playing=flase; is just a flag that you might want to use to control the starting and stopping

kizterely

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top