Execution order Archive

More cryptic notes to myself about execution order in Flash


When a nested MovieClip with a custom subclass is created, the order is something like this (I think):

the asset is created (as a “plain” MovieClip: it has its name, dimensions, etc, and can be referred to by name from the containing MovieClip, but it has no methods or properties of its ActionScript class)
its constructor is [...]

Nested MovieClip subclass gotcha in ActionScript 2


[UPDATE: It looks like Colin Moock's excellent book Essential ActionScript 2.0 talks about this very situation, on page 328. His workaround is to use setInterval to poll the object to see if the custom methods/properties have been set up yet.]
This kind of stuff is always a bit difficult to describe clearly, so I might not [...]

Flash execution order: introduction


This is the first in what I hope to be a series of articles about execution order in Flash. That is, when scripts can be placed on MovieClips, Buttons, timeline frames, event handlers etc, in what order will they execute when the movie is running?
A recent bug in my code inspired these investigations. The results [...]