redCircle.onPress=function{
this.startDrag();
this.onEnterFrame=function(){
_root.yourTextField.text=this._x+", "+this._y; // create this textfield on
your main timeline
}
}
redCircle.onRelease=redCircle.onReleaseOutside=function(){
this.stopDrag();
delete this.onEnterFrame;
}