Run-time instances

Timing

In our examples we repeatedly clicked the button to generate each instance. Is it possible to make it automatically generated? You might being thinking about using a loop for example for loop which will make 100 instances of the symbol. It's a possible way, but… loop will be executed momentarily and for the user all instances will appear at once… Also it's possible "to cheat" and create a supplementary movie clip with timeline of one second, make it playing and from it's frame call the code…. But it's too awkward…

Still it is quite achievable to make instance appear with a delay. Actually any code execution may be processed in Flash repeatedly with some certain time interval.

We will make a small example now. Let's call it "caterpillar"

Next