Hey Richard,
Are you using AS2 or AS3? Your best bet would be to use an external tween class. For what you want, I'd go with either
Tweener or
TweenLite
Both have excellent instructions on how to install them. For what you want, I suggest going with TweenLite.
Once you've imported those (and this is AS3), you would give your background an instance name, you'd have your clickies on the stage (give them an instance name as well) and then this code should do the trick:
import gs.TweenLite;
import gs.easing.*;
my_clicky.addEventListener(MouseEvent.CLICK, clickyHandler);
function clickyHandler(evt:MouseEvent):void {
TweenLite.to(my_background, 0.5, {x:240, y:230, ease:Quad.easeOut});
}
Kind regards,
Pieter
General notice: from now on, I would like to ask everyone to put [AS2] or [AS3] (corresponding to the version of actionscript you are using on your project) in front of their post titles when the question is actionscript related! Please help us help you faster. Thank you.