• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Second Plan

Explorer ,
Dec 11, 2018 Dec 11, 2018

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!

TOPICS
ActionScript

Views

208

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 12, 2018 Dec 12, 2018

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines