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!

background music

Status
Not open for further replies.

thecrock

Technical User
Apr 13, 2007
15
I use flash pro 8.
Is there a way i can have a soundtrack playing in the background of my movie. I would like to control it, turn Off and On by a button on my first page. I have buttons that start music and video and I would like to stop the sound file when one of them is pushed but I'd like for the sound file to re-start after i have gone back to the home page,if it has been interupted.

Newbie

Peace

crock
 
Thanks for the interest oldnewnbie,

Whatever is easier, I will probably take an .mp3 sound file and save as a .swf. But if you know of the easiest way, would be great to hear.



 
if you make a seporate .swf file with the music on it, so its literally blank with the music playing when u view it...

give it a filename eg "music.swf"

on the first page of your website where you would like the music use the code

loadMovieNum("music.swf", 2);

the number 2 can be changed for a different level if you wish...

but basically this code will make your music play over the top of the other movie

on your buttons use the code

on(release){
unloadMovieNum(2);
}

this will make your music stop until you go back to that first page where the code will load the music back onto level 2
 
Thans, I will give it a try when i get home.

Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top