I'm not sure if this is going to answer your question, but here's how I generally get around the regular button mouse-over method.
First take your graphic (I'm assuming you can take your button and remove saturation to give the black and white effect). Convert the image to a movie-clip (not a button), and then go to editing mode for that clip. Make a motion tween (20+ frames) from the original image to the unsaturated one (or vice-versa, whatever effect you're attempting to make). (insert key-frame at frame 20, select frame one, add a filter >> saturation = 0). Then go back to your stage and apply this script (as 2.0) to your movie-clip.
onClipEvent (load) {
roll = false;
}
onClipEvent (enterFrame) {
if (roll == true) {
this.nextFrame();
} else {
this.prevFrame();
}
//end if
}
on (rollOver) {
roll = true;
}
on (rollOut) {
roll = false;
}
-
- onClipEvent (load) {
- roll = false;
- }
- onClipEvent (enterFrame) {
- if (roll == true) {
- this.nextFrame();
- } else {
- this.prevFrame();
- }
- //end if
- }
- on (rollOver) {
- roll = true;
- }
- on (rollOut) {
- roll = false;
- }
-
In this instance, roll is your variable and can be basically anything, as long as you change it where it's used. Basically controls the animation based on the value of the variable. This keeps the animation smooth and not "jumpy" as it would be if you used movie-clips with animation in a button instance.
Hope that helps.