Skip to main content
October 26, 2007
Question

Fade Music In and Out

  • October 26, 2007
  • 1 reply
  • 269 views
Hi All,

I have a project I'm working on. The music for the web site starts almost immediately. I have a few sections where I'm loading other content where I want the music to end. What I would like to do is have the ActionScript fade the music out as the player enters the frame and the fade the music in as the player enters another frame. The name of my music file that is playing is Chill1.

I'm a noobie so detailed help would be M U C H appreciated!

Thanks,
Scott
This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
October 26, 2007
you need to use the sound class if you want to control your sound with actionscript. when you do that you will create a sound instance to which you'll attach a library sound (using its linkage id) and then you can use the sound class methods and properties including setVolume(), start() and stop().
October 26, 2007
Thanks for the reply kglad but I have NO IDEA what the heck you are talking about. Like I said I'm new to ActionScript and you might as well have written your reply in Russian or Chinese.

I really need specific code to have any chance of getting this to work or a link to a good tutorial site on how to do this.

The music I want to fade out is playing in Scene1. I have a movie clip that when the user enters that movie clip I want the sound to fade out and when they exit that movie clip have the sound fade in.

Any help is appreciated!

Thanks,
Scott
kglad
Community Expert
Community Expert
October 27, 2007