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:
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?
import flash.utils.*;
var tTimer:Timer = new Timer(10000);
tTimer.addEventListener(TimerEvent.TIMER, loadTestimonials);
tTimer.start();
function changeTestimonials(eventArgs:TimerEvent)
{
}