Possibly Asked Questions :o What if I want a fade in?
Then in step 5 you enter volumeValue = _currentframe;
The value will increase as the movie plays, but you must note that all sounds start with the volume set to 100.
o What if I want to fade out a sound that is inside another movie clip?
Then you drag fadeOutMC in your movie clip at the frame you want your fade out to start,
but in step 5 you should enter the path to your movie clip.
o What if I want to fade the music out in less than 100 frames?
Then you make fadeOutMC to have as many frames as you want your fade out to last,
but in step 5 you must multiply _currentframe with a number, that when multiplied with fadeOutMC's last frame, gives 100.
That means that if you want your fade out to last 25 frames, you must enter : volumeValue = 100 - (_currentframe*4);
o I don't hear any music after the fade out but is it still playing?
Yes it is.
If you want it to stop then you should enter _root.myMusic.stop(); in fadeOutMC's last frame. (In step 3)
That's all. Enjoy
|» Level Intermediate|
Rating: 8.87 Votes: 163
|Agamemnon lives in Greece. He is a professional musician (a Double Bass player) and a semiprofessional web author. He loves working with Flash while what hates the most is the incompatibility between browsers.|
|Download the files used in this tutorial.|
|Download (35 kb)|
|More help? Search our boards for quick answers!|