Displaying Nested Array Content with Time Delay in Flex

Posted by MooCow on Stack Overflow See other posts from Stack Overflow or by MooCow
Published on 2010-04-01T23:35:31Z Indexed on 2010/04/01 23:43 UTC
Read the original article Hit count: 196

Filed under:
|

I have a JSON array that look like this:

(array here)

I'm trying to use Flex to display each Project and its Milestone elements similar to a nested for-loop for 15 seconds per Milestone element before advancing to the next Project. I was shown a technique that works well for something without another array buried into it.

var key:int = 0; var timer:timer = new timer (10000, project.length);

timer.addEventListener (TimerEvent.TIMER, function showStuff(event:EVENT):void { trace project[key].projectName; key++; });

timer.start();

But that only replicate a single FOR-LOOP and not a nested FOR-LOOP. Any suggestions?

© Stack Overflow or respective owner

Related posts about flex

Related posts about loops