Question: How do I capture the position of a mouseclick from the user in my Flash window using Actionscript 3.0?

Answer: 
Ron DeVera is close, but I wouldn't use an inline function, and the object passed to the function is not Event, but MouseEvent.

```
stage.addEventListener(MouseEvent.CLICK, _onStageMouseDown);

function _onStageMouseDown(e:MouseEvent):void
{
    trace(e);
}

//traces
//[MouseEvent type="click" bubbles=true cancelable=false eventPhase=2 localX=96 localY=96 stageX=96 stageY=96 relatedObject=null ctrlKey=false altKey=false shiftKey=false buttonDown=false delta=0]

```

All of the properties in the output above are available through the object that gets passed to the Event Listener Method, \_onStageMouseDown(e:MouseEvent); Hence the following

```
function _onStageMouseDown(e:MouseEvent):void
{
    trace(e.localX);
    trace(e.stageX);
    //Note that the above two traces are identical as we are listening to the stage for our MouseEvent.
}

```
Location defined by what context? The whole page? One or more specific clickable controls?