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

Popular posts from this blog

.net - C# List<T>.Find(x=>x.Rectangle.Contains(Point)) FAIL -

iphone - Smoothing a rounded stroke in Core Graphics -

c++ - QtQuick: QQmlApplicationEngine failed to load component qrc:/main.qml:23 Invalid attached object assignment -