Copy link to clipboard
Copied
How can I make an application run in the background?
Let's say I have a SetTimer script, I would like to add a sound when it reaches the 0 seconds mark, but I do not know how to make a background application for the user.
var regressive:Timer = new Timer (10000,0);
regressive.addEventListener(TimerEvent.TIMER, to_Regress);
regressive.start();
function to_Regress (TimerEvent:Timer) {
regressive.stop();
// sound
}
Someone could help me? Thanks!
Copy link to clipboard
Copied
It is not clear to me what you are after beyond indicating you want to have a sound occur when the timer executes. I do not see how a background application fits into the situation. To work with sound, look into using the Sound and SoundChannel classes... https://www.google.com/search?q=as3+sound