I have read Order of Operations in ActionScript tutorial by senocular at http://www.senocular.com/flash/tutorials/orderofoperations/. It is very nice to understand how code executes inside swf. But some thing I want to understand clearly but cannot able to post comments there to get cleared.
*Object Creation
The initialization of a SWF starts with (mostly) the document class constructor. This is the class associated with the main SWF instance, or the main timeline. Though this is the perceived entry point for a SWF application, the first code run within a SWF actually starts with any child objects that may be defined in the main timeline’s first frame (as created in Flash Pro, or COLOR="Red"otherwise defined in SWF tags[/COLOR]).*
Object Destruction
Objects generally cease to exist, or are removed from memory, when they[COLOR=“Red”] (2)a) are no longer able to be referenced through ActionScript[/COLOR] and b) are cleaned up by garbage collector (GC) process in Flash Player. The GC is a hidden, background process that automatically manages memory for you, deleting objects in memory when they’re no longer being used. References to timeline objects are automatically managed by the timeline, created and removed as the frames with the timeline objects are entered and exited.
When a timeline object no longer exists in the next frame, it will be destroyed at the end of the current frame. There are no destructors in ActionScript, so display object destruction is often identified by removal from the timeline which can be captured through events. This process will usually mean removal from memory as well unless any COLOR="Red"custom ActionScript references persist after this process.[/COLOR]
Help me to clear those points.
Thanks in Advance,
-particles