PDA

View Full Version : Button Rollover Tween Question



mattjp18
December 16th, 2008, 09:38 AM
Hi, I was wondering if anyone had an explanation of how bigspaceship.com achieves all their button rollovers with the pinnk text sliding down and replacing the white. I am trying to accomplish the effect. Right now I have a movieclip containing both text versions, and a box set as a mask for the movieclip. I added eventListeners to tween the movieclip up and down, however it doesn't look quite as nice as on the bigspaceship site. There has to be a more elegant way of doing it.

Thanks,
Matt

Talibith
December 22nd, 2008, 01:05 PM
I don't exactly get what your asking but how I would do it would be like this:

instance_name.addEventListener(
MouseEvent.MOUSE_OVER,
function(evt:MouseEvent):void{
instance_name.play();
}
);
Then just add stop(); to the first frame of your movieclip.
Then when you mouse over it it plays the anamation.
I'm new to AS3 so I don't know much.
Good luck!