# Flash counter problem

**URL:** <https://forum.kirupa.com/t/flash-counter-problem/296389>\
**Category:** flash\
**Created:** [September 14, 2009, 2:24pm UTC](https://forum.kirupa.com/t/flash-counter-problem/296389 "2009-09-14T14:24:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![webmaster](https://avatars.discourse-cdn.com/v4/letter/w/ee7513/32.png) [@webmaster](https://forum.kirupa.com/u/webmaster)\
**Post date:** [September 14, 2009, 2:24pm UTC](https://forum.kirupa.com/t/flash-counter-problem/296389/1 "2009-09-14T14:24:57Z")

</div>

hi,  
i’m trying to create a flash counter.  
each time the movie clip is loaded, it loads an external variable (number of seconds).

so lets say the variable is:

secondsToEnd = 260;

the timer will be working until it gets to zero, then the movie clip will go to frame number 2.  
after a refresh of the page, the “banner” will check again for a new xml variable.

i will need help on creating the counter (after receiving the variable secondsToEnd) till it gets to zero.

any help will be appreciated.  
thanks in advance.

WebMaster.
