6 Replies Latest reply on Sep 21, 2009 5:37 PM by Farafra

    createToolTip and MouseEvent.CLICK on the tooltip doesn't work

    Farafra

      Hi,

       

      I didn't success to get an MouseEvent.CLICK working on a tooltip created with ToolTipManager.createToolTip.

       

      Here is the code, no Alert is shown when i click on the tooltip :

       

      private var tt:ToolTip;
      
      private function showToolTip( event:Event ):void
      {     
           tt = ToolTipManager.createToolTip( toolTipHelpText, 0 , 0 ) as ToolTip;
           tt.addEventListener( MouseEvent.CLICK, test )
      }
      
      private function test( event:MouseEvent ):void
      {
           Alert.show( 'test' );
      }
      

       

      Do i make something wrong ?

       

      Thanks