Highlighted

Second Plan

Explorer ,
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

124

Likes

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

Second Plan

Explorer ,
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

125

Likes

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
Dec 11, 2018 0
LEGEND ,
Dec 12, 2018

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

Likes

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
Reply
Loading...
Dec 12, 2018 0