drawing symbols on a map - how to delay each placement?
Hi,
yesterday I gave Flash (AS3) a chance to draw me symbols on a map. The coordinates of which derive from a simple external file.
Since it is my first trial with Flash I am already quite happy with the current outcome. What puzzles me however, how I could delay the placement of the symbols so that they will be displayed on stage one after the other rather then altogether. I tried timers such as "setTimeout" or "tweener" (at a position see below) with no success. There is a delay but only before all symbols are displayed still at once. Most probably a very silly thing...
Structurally this happens:
--------------------------------------------------------
load coordinates from file into an array line by line (x/y coordinates)
start loop through array
retrieve X- and Y coordinates
instantiate shape
define shape-size, -color, -position
<-- TIMER!?
addchild (shape)
end loop
--------------------------------------------------------
