PDA

View Full Version : No More Scrounging Around For Code!


MixMatch
03-16-2002, 12:23 PM
With the new AS standards, there will be no need to go clicking on every button and movie clip to see if it contains the code your looking for...


Avoid attaching code to Movie Clips or buttons

Don't attach code to movie clips and buttons unless it's absolutely necessary to
do so. When code must be attached to a movie clip or button, only use a
minimal amount of code. It's preferable to employ a function call, as follows:
myButton.onMouseDown = function() { _parent.doMouseDown(this); }
The use of the function call redirects all the functionality into the main timeline
of the movie clip.


YOU NEED THIS FILE NOW!!!
http://download.macromedia.com/pub/desdev/downloads/actionscript_standards.pdf

Madokan
03-16-2002, 04:40 PM
Isn't it great :)

It even works with enterFrame

_root.onEnterFrame = ....

yours
Matze K.