Desmond
09-22-2003, 03:59 PM
<HTML><HEAD><TITLE>Toggling the Background Music On and Off</TITLE></HEAD><BODY><h3>Toggling the Background Music On and Off</h3><b>Document ID: IR10004</b><hr>The information in this article applies to:<ul><li>AutoPlay Media Studio 5.0 Standard Edition</li><li>AutoPlay Media Studio 5.0 Professional Edition</li></ul><hr><h3>SUMMARY</h3><p>This article describes how to toggle the background music on and off.</p><h3>DISCUSSION</h3><p>It is possible in AutoPlay Media Studio 5.0 to have music playing in the background of your application.<br><br>To allow the user to turn off this music if they wish:</p><ol> <li>Create a button.</li><li>On this button's On Click event, insert the following code:<br><br><pre><code>Audio.TogglePlay(CHANNEL_BACKGROUND);</code></pre></li></ol><p>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.<br></p><h3>MORE INFORMATION</h3><p>For more information please see the following topics in the AutoPlay MediaStudio 5.0 help file:</p><ul><li><b>Program Reference | Actions | Audio | Audio.TogglePlay</b></li></ul><p>KEYWORDS: AutoPlay Media Studio 5.0, Actions, Sound, Audio, Background, Music,Play, Pause, Mute</p><hr><FONT SIZE=1>Last reviewed: September 22, 2003<br>Copyright © 2003 <A HREF="http://www.indigorose.com" target="blank">Indigo Rose Corporation</a>. All rights reserved.<br></FONT></BODY></HTML>