# Timers

**URL:** https://forum.kirupa.com/t/timers/312049
**Category:** flash
**Created:** [July 23, 2010, 6:13pm UTC](https://forum.kirupa.com/t/timers/312049 "2010-07-23T18:13:37Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![zerdang](https://avatars.discourse-cdn.com/v4/letter/z/ecb155/32.png) [@zerdang](https://forum.kirupa.com/u/zerdang)
#### Post date: [July 23, 2010, 6:13pm UTC](https://forum.kirupa.com/t/timers/312049/1 "2010-07-23T18:13:37Z")

</div>

I’ve got a game that I’ve been working on and it requires points to be made so that a ship can go to those points on a path that a player has drawn. Basically the player will draw a path and the ship will follow the points that will be added every half second

I need help with the Timer/TimerEvent classes. I want a point every half millisecond.

my code.

```auto

var s:Shape = new Shape();
addChild(s);

var timer : Timer = new Timer (500);
s.addEventListener (TimerEvent.TIMER, timerHandler);
timer.start ();

function timerHandler (event : TimerEvent) : void
{
	var p:Point=new Point(mouseX,mouseY)
}

```

I haven’t ever used the timers in as3 so my experience is limited. Any help is appreaciated.
