
Код:
import mx.utils.Delegate;
var timeOutID:Number=null;
var oldButtonX:Number=null;
var oldButtonY:Number=null;
button.onPress=Delegate.create(this,onButtonPress);
function onButtonPress():Void{
clearInterval(timeOutID);
oldButtonX=button._x;
oldButtonY=button._y;
button._x=100*Math.random();
button._y=100*Math.random();
timeOutID=setTimeout(returnToOldPlace,1000);
};
function returnToOldPlace():Void{
button._x=oldButtonX;
button._y=oldButtonY;
};
Примерный код. button - название твоего MovieClip'a