# Adding numbers (time) to a countdown

**URL:** <https://forum.kirupa.com/t/adding-numbers-time-to-a-countdown/288892>\
**Category:** flash\
**Created:** [May 22, 2009, 1:06pm UTC](https://forum.kirupa.com/t/adding-numbers-time-to-a-countdown/288892 "2009-05-22T13:06:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JinxBunny](https://avatars.discourse-cdn.com/v4/letter/j/6bbea6/32.png) [@JinxBunny](https://forum.kirupa.com/u/JinxBunny)\
**Post date:** [May 22, 2009, 1:06pm UTC](https://forum.kirupa.com/t/adding-numbers-time-to-a-countdown/288892/1 "2009-05-22T13:06:10Z")

</div>

I’m sure this is something really basic, but I’ve searched and nothing quite fits what I’m looking for…

I have a timer counting down using this code

```auto
count = 30;
countdown = function(){
count--;
if (count ==0){
	_root.gotoAndStop("lost");
}
}

doCountdown = setInterval(countdown,1000);
stop();

```

and I want to be able to add 10 ‘seconds’ to it, when a button is pressed,  
I tried

```auto
on (press) {
	count+10;
}

```

but this doesn’t work, ‘count++’ adds 1 well enough, but how can I add 10?

help appreciated :stare:
