How we get global x,y position,when we are clicking in a datagrid cell.
+3
A:
If you have access to the MouseEvent
//i.e., if you are inside the clickHandler(e:MouseEvent):void
trace(e.stageX + ", " + e.stageY)
Otherwise:
var obj:DisplayObject = theDesiredObject;
var globalPoint:Point = obj.localToGlobal(new Point(obj.mouseX, obj.mouseY));
trace(globalPoint.x + ", " + globalPoint.y);
Amarghosh
2010-02-02 11:56:52
Thanks Champ :)
Atul Yadav
2010-02-02 12:14:51