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

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -