I would like it so that when I click the “envelope” button… the actionscript makes the “businesscard” movieclip slide into the same x and y position as the “cardopen” movieclip.
my code isn’t working:
on(press){
businesscard._y-=(businesscard._y-cardopen._y)*25
businesscard._x-=(businesscard._x-cardopen._x)*25
}
though if I type the code without the *25
it works … it just snaps the card into position without any easing
any help please?
Thanks