3 Replies Latest reply on Apr 26, 2012 3:33 AM by Harbs.

    Move tooltip CSXSWindowType.TOOLTIP

    JeffW. Level 1



      I'd like to show and hide  a tooltip window, and it works, but the position of the window is always at the top left of the screen (the monitor screen).

      Is there a way to position it, for example relative to the current mouse position?


      My code for showing the window:


      _preview = new PreviewWindow();

      _preview.addEventListener(Event.CLOSE, onPreviewClose, false, 0, true);

      _preview.showStatusBar = false;

      _preview.type = CSXSWindowType.TOOLTIP;



      PrreviewWindow is an mxml Window component.

      Setting  _preview.x  moves the content of the window to the right but keeps the window itself at the top left of the screen.