flash (macromedia):
Hi,
When I roll over a mc-based "button", then roll out, or directly onto another
instance of the same mc-based "button", my attached onrollout event script
isn't always executed.
I've set up a movie clip that looks like an animated "highlight". I'm using
instances of this mc as buttons, and the highlight animations will be the
"over" state of the button. Oh yeah, and I'm not using button-type symbols,
just instances of the mc. The highlight mc has stop actions on the
"de-activated" (frame 1 of 20) and "active" (frame 10 of 20) keyframes, and
there are some tween frames to enable the animation. I've added actions to each
instance of this movie clip, a roll-over event handler tells the mc to play,
which moves the mc to frame 10, the "highlighted" state. I've also added a
roll-out event to the same instance, which again tells the mc to play, moving
the mc's timeline from frame 10 to 20 and then looping it back to frame 1
(starting position).
I've placed several instances of the mc-based "button" on the main timeline.
When I test the movie and roll over an instance, the highlight animation is
triggered correctly and my "button" has a "over" state. However, when I roll
out of the button's area, the "over" state is supposed to go away ... but
sometimes it doesn't. What's weirder, then the button mc seems to work in
reverse, with the mc's timeline on the "highlight" keyframe, and the the
roll-over causing the mc to play to the "un-highlighted" frame.
Am I not accounting for enough events? Should I account for every conceivable
event? Are the multiple instances of the mc , and their close proximity,
confusing the Flash Player? Is there some better technique for ensuring that an
instance of a movie-clip executes its attached ActionScript? Maybe I should use
a button-symbol, but then I gues I coudn't use an animation of the over state
fading away ...
Hmm ... Ted