# Pass function parameters in another function

**URL:** <https://forum.kirupa.com/t/pass-function-parameters-in-another-function/271685>\
**Category:** flash\
**Created:** [September 26, 2008, 12:13pm UTC](https://forum.kirupa.com/t/pass-function-parameters-in-another-function/271685 "2008-09-26T12:13:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![manojanand](https://avatars.discourse-cdn.com/v4/letter/m/ecccb3/32.png) [@manojanand](https://forum.kirupa.com/u/manojanand)\
**Post date:** [September 26, 2008, 12:13pm UTC](https://forum.kirupa.com/t/pass-function-parameters-in-another-function/271685/1 "2008-09-26T12:13:17Z")

</div>

Hi guys!

I have a timer and I want to call a function once the interval I set expires, pretty standard.  
But when I also want to pass a couple of extra arguments with the Timer parameters.

```auto

var timer:Timer = new Timer(500, 10);

var X:Number = 10;
timer.addEventListener(TimerEvent.TIMER, notifier**[pass extra args here]**);
// now I want to send this number X to the notifier function.

function notifier(event:TimerEvent, var total:Number = 0):void {
    trace(timer.currentCount);
    trace ("total: " + total);
}

timer.start();

```

This is only a snippet. I want to know how I’m to pass the extra arguments to the function.

Thanks in advance!
