Flash CS3 Documentation |
|||
| Extending Flash > Objects > Tools object > tools.penDownLoc | |||
Flash MX 2004.
tools.penDownLoc
Read-only property; a point that represents the position of the last mouse-down event on the Stage. The tools.penDownLoc property comprises two properties, x and y, corresponding to the x,y location of the mouse pointer.
The following example determines the position of the last mouse-down event on the Stage and displays the x and y values in the Output panel:
var pt1 = fl.tools.penDownLoc;
fl.trace("x,y location of last mouseDown event was " + pt1.x + ", " + pt1.y)
Flash CS3
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/9.0/main/00004575.html