tags:

views:

56

answers:

0

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?