Indigo Rose Software
  #1  
Old 12-14-2007
Adam's Avatar
Adam Adam is offline
Indigo Rose Staff Member
 
Join Date: May 2000
Location: Indigo Rose Software
Posts: 2,154
Toggling the Background Music On and Off

It is possible in AutoPlay Media Studio to have music playing in the background of your application.

To allow the user to turn off this music if they wish:

1. Create a button.
2. On this button's On Click event, insert the following code:
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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -6. The time now is 09:31 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software