muv.onPress = function (){ this.onEnterFrame = Drag; } muv.onRelease = function (){ this.onEnterFrame = null; } function Drag(){ if(this._x<100){ trace("x < 100"); } if(this._y>200){ trace("y > 200"); } }