Toggling the Background Music On and Off
Document ID: IR10004The information in this article applies to:
- AutoPlay Media Studio 5.0 Standard Edition
- AutoPlay Media Studio 5.0 Professional Edition
SUMMARY
This article describes how to toggle the background music on and off.
DISCUSSION
It is possible in AutoPlay Media Studio 5.0 to have music playing in the background of your application.
To allow the user to turn off this music if they wish:
- Create a button.
- On this button's On Click event, insert the following code:
Audio.TogglePlay(CHANNEL_BACKGROUND);
This example assumes the background music in your application is playing in channel CHANNEL_BACKGROUND. When the user clicks the button, the background music will pause if it was playing, and play if it was paused.
MORE INFORMATION
For more information please see the following topics in the AutoPlay MediaStudio 5.0 help file:
- Program Reference | Actions | Audio | Audio.TogglePlay
KEYWORDS: AutoPlay Media Studio 5.0, Actions, Sound, Audio, Background, Music,Play, Pause, Mute
Last reviewed: September 22, 2003
Copyright © 2003 Indigo Rose Corporation. All rights reserved.