Trying to do event.target

i want to use one function that i can easily edit its contents to be used with many objects when they are clicked.

here, i first create a function that shows that i want to move the target of my click to the right. i then call this function from inside 2 mouseevents.
i am trying to make it this way so i can keep adding lines of code to the ‘moveRight’ without needing to edit the individual targets.

Can this be done?


stop();
function moveRight(event:MouseEvent):void
{
event.currentTarget.x += 66
}
z.addEventListener(MouseEvent.CLICK, zClick);
function zClick(event:MouseEvent):void
{
moveRight();
}
xx.addEventListener(MouseEvent.CLICK, xClick);
function xClick(event:MouseEvent):void
{
moveRight();
}


THANKS!