# Calling a function

**URL:** <https://forum.kirupa.com/t/calling-a-function/284991>\
**Category:** Uncategorized\
**Created:** [March 25, 2009, 9:16pm UTC](https://forum.kirupa.com/t/calling-a-function/284991 "2009-03-25T21:16:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![waverider303](https://avatars.discourse-cdn.com/v4/letter/w/ac91a4/32.png) [@waverider303](https://forum.kirupa.com/u/waverider303)\
**Post date:** [March 25, 2009, 9:16pm UTC](https://forum.kirupa.com/t/calling-a-function/284991/1 "2009-03-25T21:16:26Z")

</div>

I have a function that will pull data from a php file. I also have a timer that when it finishes a cycle of 10 seconds it will run the function that fuctions that grabs data from the php file.

What my question is if I have a script that is pulling the data:

```auto

function loadTestimonials(e:Object):void
{
	for(var i:int=0; i<e.length; i++)
	{
		
		testimonials.text = e*.testimonials;
		from.text = e*.from;
		trace(e);
		/*trace(e*.testimonials + " - " + e*.from);*/
	}
}

```

How do I call that function again from my timer function?

```auto

import flash.utils.*;
var tTimer:Timer = new Timer(10000);
tTimer.addEventListener(TimerEvent.TIMER, loadTestimonials);

tTimer.start();

function changeTestimonials(eventArgs:TimerEvent)
{
	
}

```
