SetInterval Question
SetInterval Question
Out of context: Reply #4
- Started
- Last post
- 4 Responses
- Mick0
You will need to clear your interval or it will keep running (forever)
stop();
function aktive() {
gotoAndStop(2);
clearInterval(myInterval);
}
myInterval = setInterval(aktive,15000);You can also use settimeout which is much easier for calling a function once only...