1 Reply Latest reply on Aug 29, 2008 2:16 AM by Newsgroup_User

    Placing ToolTip Where I Want

    ericbelair Level 1
      I have an MXML Component (attached) that is a ComboBox. The labels in the ComboBox are long, so I am trying to create a ToolTip that is displayed when the user rolls over one of the labels. I want the ToolTip to display to the left of the item being rolled over (or at the very least in the general area). I know you need to specify the x and y in the createToolTip() function, but this ComboBox component is deep in the Display Hierarchy, and I can't figure out an easy way to dynamically get the x and y coordinates of the component in the application, since the x and y properties of the component are in relation to the parent component, not the application. So, when I run the attached code, it displays in the top left corner of the application.

      Can anyone help?