PDA

View Full Version : How do I stop backgrond music on web button?


KathyM
02-20-2007, 09:07 PM
I have a button that when clicked on opens a website. My project has continual background music playing, and I want the music to stop when the website is opened, but then I want the music to return when the website is closed and user returns to the page. I added the action to the button, on click, audio.stop, and on leave, audio play. However, it seems like "on leave" also means when the mouse "leaves" or passes over the button. So if the user has used the optional music on/off button I have on the top of the page to turn off the music, as soon as their mouse passes over the website button the music starts again. Any suggestions? Thanks!

TJ_Tigger
02-21-2007, 07:53 AM
You are correct about the On Leave part of the actions. That event is fired when the mouse pointer leaves the area of the button. How are you opening your web page? Is it within AMS(web object) or outside of AMS(systems default browser)?

Tigg

KathyM
02-21-2007, 02:18 PM
When I made the button, I put a quick action on it to open a website. So it opens with the systems default browser.