Below is another method of animation using Tweens, these run very smoothly and are easy to modify. I would advise that you increase the frame rate of the movie to 24fps, at 12fps it will look choppy.
If you want to make it scale on the x axis just duplicate the line of code in the scalebutton function and change the tween name and "_yscale" to "_xscale"
You can download an example of the code (very basic) at http://www.craybe.com.au/B
Let me know if you would like more information on how to set up multiple buttons.
Main Topics
Browse All Topics





by: wal_toorPosted on 2009-04-23 at 01:08:53ID: 24212724
Hellow,
Whell, to get something like this you need some pieces of action scripting. First you need a function to tell a movieclip to scale in, or out. Then each button needs to call this script when the mouse is over or off.
I have created a sample flash file where you can see this in action. Please rename the .fla.txt extension to .fla (CS3, AS2 file)
Hope this works for you.
Select allOpen in new window
zoombutton example file (rename .fla.txt to .fla)