PDA

View Full Version : Help with Sound Issue


shinyrory
01-06-2007, 05:16 PM
Hey everyone,

i have several buttons that go to different pages within my project but because the buttons are in the same place on every page the audio plays twice when highlighted. Is there a way to once the button has been clicked to not allow any other sounds to play until the sound on the button that has jsut been clicked has finished? Hope this makes sense. Any help is much appreciated and need badly. Thank you

Eliminator
01-06-2007, 05:31 PM
Hi,

Try to add this to your button on (On Higlight):

CurrentPos = Audio.GetCurrentPos(CHANNEL_EFFECTS);
if CurrentPos < 1 then
--Load your song
end

Like that if the song is playing it won't load again and if the song is not loaded or is stopped, the song will be launched.

Good Luck,
Eliminator