View Full Version : Changing sounds as page changes
Rae-Rae
08-20-2007, 10:46 PM
Hey
I need some help in changing the sound played on page 1 to play a brand new sound when page 2 opens (stopping the sound on page1 to play page2's sound).
Please help me.
Hi,
It depends on the type of sound file your using and how your employing them.....either on a keyframe, attaching the sound from the library, or with a sound object. If the sound files are in .mp3 format, I suggest using a sound object...
mySound=newSound(this);
mySound.loadSound("someFile.mp3");
Here is a very nice sound tutorial that might be a useful read...
http://www.kennybellew.com/tutorial/index.html
Regards
NTD
Rae-Rae
08-21-2007, 10:40 PM
Hi
I tried your method and it did'nt work. The music still play as an overlap, so when i click to go to the next page the first sound needs to stop and the second sound needs to start. They are both .mp3 format
I guess I need a code to amend this. Do I attach it to the sound layer or acctions layer?
Hi,
A sound object is created in the Actions layer.Once created, you can load multiple sounds into the object on any particular event...
mySound=newSound(this);
mySound.loadSound("someFile.mp3");
myButton.onRelease=function(){
mySound.loadSound("someOtherFile.mp3");
}
Powered by vBulletin™ Version 4.1.1 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.