Display X and Y coordinates

Hi,

I’m new to actionscript. What I’d like to do is as follows:

I have a draggable movie clip called ln, and what I’d like to happen is, when you click it and drag it, its X and Y coordinates get displayed somewhere on screen, where they’re visible to the viewer. Then when you release it, the coordinates freeze in place

How would I go about doing this?

Any help would be thoroughly appreciated.