PDA

View Full Version : Tip: toogle music on/off when focus is on AMS



yosik
02-12-2004, 09:51 AM
Sharing a tip with you, guys. Maybe someone can use it:
I wanted to have a background music playing and when I click a button which launches an EXTERNAL file (for example a video in Media player, but anything alse goes), the music would stop. That's easy!
But I wanted the music to start again when the external app is closed and the user is back to AMS.
Solution: (mine anyway..)
1. have a hotspot made visible when button is clicked, just before going to app. (allow a small delay for app to start).
2. onEnter this hotspot, a) the hotspot disappears, b) music starts again.
Enjoy
Yossi

Lorne
02-12-2004, 01:11 PM
Nifty. So does the hotspot cover the whole page?

yosik
02-12-2004, 03:03 PM
Exactly. It may not be "elegant", but it was the way I found to "wake up" the background music when focusing back to AMS
Yossi

Silver Zero
02-14-2004, 10:23 AM
Excellent tip!