# Timer question

**URL:** <https://forum.kirupa.com/t/timer-question/268509>\
**Category:** Uncategorized\
**Created:** [August 14, 2008, 6:03pm UTC](https://forum.kirupa.com/t/timer-question/268509 "2008-08-14T18:03:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![r3h0ld3r](https://avatars.discourse-cdn.com/v4/letter/r/f4b2a3/32.png) [@r3h0ld3r](https://forum.kirupa.com/u/r3h0ld3r)\
**Post date:** [August 14, 2008, 6:03pm UTC](https://forum.kirupa.com/t/timer-question/268509/1 "2008-08-14T18:03:54Z")

</div>

Here’s an easy one for you guys. I’ve got a .swf that displays text and then has the effect of a shine when a gradient passes over it while it’s masked. I want this to happen every so often on a web site, say…every 2 minutes. Is it possible for the timer to control how often the .swf is restarted? Anyway, here’s my timer code I stuck in there:

```auto
var timer:Timer = new Timer(120000);
timer.addEventListener(TimerEvent.TIMER, onTimer);
timer.start();

```

I get an error on line two. What am I missing?
