2 Replies Latest reply on May 26, 2011 6:06 AM by Alberto_Mz_Dz

    Positioning tooltip

    Alberto_Mz_Dz

      Hi,

       

      I am trying to show a custom tooltip when using the rollOver event of a Textinput so I have this code:

       

      private var tltMensaje:ToolTip;

       

      protected function txt_Password_rollOverHandler(event:MouseEvent):void
         {   
          var pt:Point = new Point(
           event.currentTarget.x,
           event.currentTarget.y);
        
          pt = event.currentTarget.contentToGlobal(pt);
         
          tltMensaje = ToolTipManager.createToolTip("MyMessage",     
           pt.x + event.currentTarget.width,     
           pt.y, "errorTipRight") as ToolTip;
         }

       

      The Textinput is inside a Panel and the toottip doesnt appear next to the Textinput

      Img1.png

       

      What I want to know is if there is a way to show the tooltip next to the Textinput like this

      Img2.png

       

       

      Thanks,

       

      Alberto