I have the code:

```
var timer:Timer = new Timer(milliseconds, repititions);
timer.addEventListener(TimerEvent.TIMER, callback);
timer.start();

```

and if a user click I want to call the callback early. Is there was a way to either force the timer to finish immediately, or stop it and send the `TimerEvent.Timer` on my own?

I'm looking for something simple like the tween classes `fforward()`.

*EDIT*

The Solution was

```
timer.dispatchEvent(new TimerEvent(TimerEvent.TIMER));

```

I was trying to do `timer.dispatchEvent(new TimerEvent("TIMER"));` which doesn't work.
['https://Stackoverflow.com/questions/6312748', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/198034/']
```
var evt:TimerEvent = new TimerEvent(TimerEvent.TIMER);
timer.dispatchEvent(evt);

```
```
var timer:Timer = new Timer(milliseconds, repititions);
timer.addEventListener(TimerEvent.TIMER, callback);
timer.start();

function callback(e:TimerEvent):void{
   //to do what
}

```

to call simpliest way, just call the function like this.

```
callback(null);

```