I am continually amazed at the number of people who are just
now coming to Flash (or have only just started learning a bit of
Actionscript) and post questions regarding
on(someClipEventOrOther). I'm trying to understand who and/or what
is guiding them to using this type of pre-Flash MX (6) style of
Flash 6 was released early in 2002 and introduced all the
MovieClip.onSomeClipEventOrOther events. The benefits of being able
to put all your code in one place (or at least in more controlled
places) and not having to search around to make changes are truly
amazing. Personally I haven't used the on(clipEvent) structure
since 2002. And I suspect that most folks here who do a lot of
development use it very sparingly if at all? Am I correct in this
Personally I seldom answer questions that involve that kind
of code because I just don't remember all the
in-outs-and-little-tricky-bits about using it. Scoping issues, does
the clip exist at the correct time, what is the path from it to
other things on the stage, what is their code and properties, etc.
It just gets too hard to debug and follow when it is so broken up.
Or maybe it is just me?
I'm just trying to start a community dialog about this and am
wondering if there is someway we can encourage/lead new folks to
not using that style of coding? Or does everyone think that it is a
PS: I used to be crazy and rabid about the use of _root, and
I would just like to point out that we don't seem to have so many
questions that revolve around _root anymore, now do we? :)
People need to discover that they dont need on(whatever) on
thier own. telling them they dont need, well if ur a programmer you
have to find out for yourself to beileve. But i still use it every
now and again when im 50 timelines deep and dont feel like making
an absolute path.