I have a bunch of buttons on my page and when they are
hovered over it tells the specific button to advance its current
frame so that the button fades to white. When it rolls off it
returns etc. The way I am doing this is through an onEnterFrame for
each button that has an if statement to test if it is being hovered
Now this works fine but it is very slow as you can imagine
because there are several onEnterFrames running at one time. Can
anyone tell me of a a better (less memory intensive) way to achieve
what i am trying to do?
> The way I am doing this is through an onEnterFrame for
> each button that has an if statement to test if it is
> hovered over.
That's one of many events available to the MovieClip and
If this button is made from a movie clip symbol, then check
class entry of the ActionScript 2.0 Language Reference.
onRollOver, onRollOut, and others that may suit your need.
get assigned in the same way as onEnterFrame events.
See if that gets you started, and write back if you need to.