1 Reply Latest reply on May 11, 2006 11:41 PM by GordonSmith

    In Flex2, How to get coordinates in a view port?

    Joekin Level 1
      I know one can use something like
      fooUIControl.localToGlobal(new Point(x,y))
      to get the coordinates corresponding to the origin at the top left of the main flex app 'document'.

      In case that the main flex app scrolls, how can I get the coordinates corresponding to the origin at the top left of the visible screen (or the 'viewport')? Or in other words, how can I find out how many pixels are scrolled in X and Y? Thanks.