Código PHP:
import mx.transitions.Tween;
import mx.transitions.easing.*;
var bot = [bot1, bot2, bot3, bot4];
var pato = [pato1, pato2, pato3, pato4];
for(var i=0; i<bot.length;i++){
goPato(bot[i], pato[i])
}
function goPato(movieBot, moviePato) {
movieBot.onRelease = function() {
var miTween:Tween = new Tween(moviePato, "_x", Strong.easeOut, moviePato._x, moviePato._x+150, 1, true);
};
}