View Full Version : Easy animation?
pigglet
07-29-2005, 09:49 AM
I'm sure the answer to my question is obvious, but I still have no clue. I know how to make buttons with a fade on rollover (w/movie, etc) but how can you make it ease beck once the pointer is off the button? In other words if I make a line go slowly to the right on rollover, how do I make it go slowly back to the left on roll off, instead of it just popping back?
Thank you for your help.
Laura
Ricod
07-29-2005, 11:57 PM
Welcome to AS[org] !
Since there's no rollOut state for button, you have to script it. There is an onRollOut method available.
If you have a movieclip with the button graphics (instead of the other way around), then you can change this movieclip dynamically.
Do you know how to work with setInterval() ? If not, take a quick peek in the helpfile for it and while your there, how to set the value of movieclip properties, like _alpha.
There are a lot of sample scripts here in the forums, so if you feel like using one of those, try using the search button. It's been asked and answered a lot of times already.
If you're still stuck, we're here for you. :)
vBulletin® v3.7.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.