try this
public var timer:Timer;
public var idx:int=0;
timerarray[] = {0, 7, 10, 11, 19, 22}

function(){
timer = new Timer(timerarray[idx]);
                                timer.addEventListener(TimerEvent.TIMER,change);
                                timer.start();}

function change{
idx++;
timerarray[idx];
}

hope, it ill help u

On Mar 17, 1:39 pm, "pradeep.pa...@gmail.com"
<pradeep.pa...@gmail.com> wrote:
> Hi all,
> I have an application where I need to perform an activtity after every
> "x" seconds. But this "x" second is variable.
> I have the collection of time in sec in an array.
> Ex: timerarray[] = {0, 7, 10, 11, 19, 22}
> In this example, i need to perform a task after 7th sec, 10th sec,
> 11th sec, 19th sec 22th sec etc.
> How do i accomplish my task using timer events.
>
> Regards
>
> Pradeep

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to flex_india@googlegroups.com
To unsubscribe from this group, send email to 
flex_india+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to