AS1 OOP: Object Scope
by senocular
Top Level Scopes
Basically there are two main top level scopes. These are the
_global object and the current _level or _root. These exist
on their own without really existing within any other scope.
Virtually anything else, however, will reside in one of
these two scopes or at least within some hierarchy within
it.
The _level scope is really where everything pretty much
starts. In your main movie this is also known as _root. This
is the core movieclip object in which the Flash movie
exists. And yes, it is a movieclip, just like any movieclip
you would make otherwise. The only difference is that this
movieclip needs to exist if your movie is to exist.
Subsequent movieclips can be placed within the _root
movieclip and further movieclips in those, etc. It is also
common to begin actionscripting in the _root timeline.
The _global object is a container for Actionscript
objects and functions. Its where much of that script you
write comes from. Because the _global object is accessible
everywhere, it gives you access to that core Actionscript
functionality that is needed to run your movie - in any
movieclip, in any scope.
[ top level scopes in a Flash movie ]