Masking a button

hey i was just wondering how i could make a mouse over masking effect with a button. theres an example of what i mean at http://www.fontsforflash.com/ their buttons on the left is what im trying to achieve. i dont know if thats called masking or not, but whatever it is its pretty neat. if you could help out that would be great! :slight_smile:

oh yes, i use flash MX

just make a button! And in the “over” state make a new movieclip where you can add the effect.
First make the new box or whatever is sliding from left to right there. (a skewed box perhaps)
animate it moving from left to right. [the thing sliding has to be a movieclip symbol!]
(in frame 1 move it on the left, in frame 10 (for example) move it to the right and right click on frame one and “create motion tween”)
now you should know the basics of masking.
http://www.kirupa.com/developer/masking.asp <-- a good tute for start.
then make a new layer then draw the area where you want the animation to be shown. and right-click on the layer and “mask”
:]

You can do it by making a movieclip that has a orange rectangle with a mask tweening over it. Then place that movieclip on the over state of your button. I attached a simple fla to help you see what I’m talking about. =)

edit: aww man, syko beat me to it. :-\ hahaha

:beam:

hey sweet, i figured it out. haha i didnt realize it was so simple, anywho, thanks for both of your guys’ help with this little problem that i had. :slight_smile:

Np =)