Quick question

In moving with actionscript, how do you stop the movement at a particular location?

[AS]if(this._x >=300){
this._x = 300;
}[/AS]Change “300” for any other value you want