PDA

View Full Version : WAV file end, then go to next page


SWD
03-31-2005, 12:07 PM
As the title says... I cannot seem to figure this one out. How do you have the application go to the next page after the WAV file is finished playing? PowerPoint does this easily, so I am confused!

Thank you.

TJ_Tigger
03-31-2005, 01:06 PM
How are you loading and playing the Wav file? That will determine how to do the page jump.

For instance. If you use Audio.Load to load the wav into a channel you can then place this code on the "On Audio" event for the page.


if e_Channel == CHANNEL_USER1 and e_State == "Finish" then
Page.Jump("PageName")
end

Adam
03-31-2005, 02:02 PM
Good one Tig :yes :yes :yes

Adam.

rhosk
03-31-2005, 02:36 PM
I have to agree Tigg, nice one! Didn't know that.

longedge
03-31-2005, 02:55 PM
So - the fact that there's a change in the audio state fires the event automatically. What a slick'n easy way to do a commentary or sound over - another day, another idea :) :yes

TJ_Tigger
03-31-2005, 03:23 PM
Thanks guys. :D