Movement using ActionScript [Mx2004]

Hello,

I need help with movement using ActionScript as I can’t find a how-to that fits my needs all over the web :confused:
It all starts with a Clip that I move to the center of the Stage when website starts. This is the code inside it:

onClipEvent (enterFrame) {
    Velocidad = 5;
    Yfinal = Math.round((Stage.height/2)-(this.fondo._height/2));
    Xfinal = Math.round((Stage.width/2)-(this.fondo._width/2));
    this._y += (Yfinal-this._y)/Velocidad;
    this._x += (Xfinal-this._x)/Velocidad;
}

This code works fine for what I need ( it also corrects position when I resize Stage without using Listeners), but I would like to come back to its original position when I change seccion on the website.

I know that if I put this code inside the enterframe it will never let me change to another position:

Yfinal = Math.round((Stage.height/2)-(this.fondo._height/2));
    Xfinal = Math.round((Stage.width/2)-(this.fondo._width/2));

…so I will like to know a pair of things:

  1. How to disable that concrete onClipEvent
  2. Another better way to animate my Clips & having possibility to get them backwards
  3. Any usefull links would be nice also :wink:

Thanks everyone posting here!