Code
mainMovie.onResize = function() {
this.onEnterFrame = function() {
if (this._x == Stage.width/2 && this._y == Stage.height/2) {
_root.removeListener(mainMovie);
// or delete this.onEnterFrame()
// neither is working, the **** x keeps tracing
} else {
this._x += (Stage.width/2-this._x)/centerMe;
this._y += (Stage.height/2-this._y)/centerMe;
trace(this._x);
}
};
};
Stage.addListener(mainMovie);
mainMovieBox.onResize();
I need the onEnterFrame to delete or the **** listener to stop listening please