Audio on/off
September 18, 2006 12:00 AM
Then I don't see the problem. There has to be an action on the page that plays the audio file. It has a condition tab. Use it.BUTTON:First fix your button to toggle a variable, say "Audio_sw". If it is on, turn it off. If it is off, turn it on. You will need a temporary variable, say "temp" to hold the old value of Audio_sw while you change it.1. To make it simple, your button needs 3 actions, all on click.Action: Modify variable; Target: temp; Value: var(temp)Action: Modify variable; Target: Audio_sw; value: On; Condition: temp = OffAction: Modify variable; Target: Audio_sw; value: Off; Condition: temp = On.PLAY ACTION:Then on the play action on each page (one action at the title or chapter level), use the condition tab:Audio_sw = On. This will play the audio on each page if it is on but not if it is off.Okay, that takes care of the switch on all pages FOLLOWING the one you click the button on but notice that nothing happens to the audio on that page. So, you need a couple more actions on the Button.Action: Play the audio; Condition: Audio_sw = OnAction: Stop the audio; Condition: Audio_sw = Off
Discussions have been disabled for this post