flex - How we get global x,y position,when we are clicking in a datagrid cell -
We get global x, y position, when we are clicking on a datagrid cell.
If you have MouseEvent
// meaning, if you are inside clickhandler (e: mouse events): zero trace (e.stageX + "," + e.stageY)
otherwise:
< Pre> var Obj: DisplayObject = theDesiredObject; Var GlobalPoint: Point = Obj. Local Global (new point (obj.mouseX, obj.mouseY)); Trace (GlobalPoint.X + "," + GlobalPoint.y);
Comments
Post a Comment