View Full Version : animate to center from draggable MC
I want to have a couple buttons(mc's) that are icons for the content window,you can drag around screen and when you click them they animate and enlarge to the center of the screen. from what ever location they are in when clicked. If you click on a different one, the one open animates back to the icon size and location and the new one does the same thing.
any thoughts?
Keith
I suppose the best way to do it is to use the "onClipEvent (enterFrame)" and write up something like this -
nextposx = _root.object._x + ((_root.finalposx - _root.object._x)/4); (where the nuber four defines the speed of motion.
Then every time set the objext postition to nextposx until it gets to finalposx. Do this for all aspects (x,y xscale and yscale) and define the fial positions you want the objects to be in.
If you need help with a particular part of the script, post it, It is much easier that way.
SFA
vBulletin® v3.7.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.