# Set a timer to call a funtion help!

**URL:** <https://forum.kirupa.com/t/set-a-timer-to-call-a-funtion-help/288802>\
**Category:** Uncategorized\
**Created:** [May 21, 2009, 6:31am UTC](https://forum.kirupa.com/t/set-a-timer-to-call-a-funtion-help/288802 "2009-05-21T06:31:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kamikaze5141](https://avatars.discourse-cdn.com/v4/letter/k/e68b1a/32.png) [@kamikaze5141](https://forum.kirupa.com/u/kamikaze5141)\
**Post date:** [May 21, 2009, 6:31am UTC](https://forum.kirupa.com/t/set-a-timer-to-call-a-funtion-help/288802/1 "2009-05-21T06:31:21Z")

</div>

what i wanted to do is set a timer to call the function “private function finishedSavingScore(event:Event)” when the urlloader complete its event it doesnt seem to be working, please help :

```auto
urlLoader.addEventListener(Event.COMPLETE, savedelay);
            
   
        private function savedelay(event:Event):void {
            delay = new Timer(2000, 1);
            delay.addEventListener(TimerEvent.TIMER, finishedSavingScore);
            delay.start();
        }
        
private function finishedSavingScore(event:Event):void {

....
....
....
}

```
