Here’s an ActionScript 2.0 Iterator class. You typically extend this since the one I provide is a base class. Here’s an example:
dialogue_array = new Iterator(); dialogue_array[0] = "Sup!?"; dialogue_array[1] = "Not much, mangxt."; dialogue_array[2] = "Cool... btw, your inside an Iterator, sucka!"; trace(dialogue_array.first()); trace(dialogue_array.isDone); trace(dialogue_array.next()); trace(dialogue_array.isDone); trace(dialogue_array.next()); trace(dialogue_array.isDone);
Download – AS
Code follows in extended entry.
(more…)