3 Replies Latest reply on Apr 29, 2008 1:39 PM by Gregory Lafrance

    Tooltip doesn't show with own component

    Ward_Loockx
      Hello,

      I have my own component that paints some rectangles to a canvas. Now the problem is that I can't see the tooltip over my object. Here is wat I do

      var record:SessionRecord = new SessionRecord();
      record.height = TIMELINEHEIGHT;
      record.width = data.SESSION_TIME*TIMELINE_SECOND;
      record.x = ((data.SESSION_START_SEC*TIMELINE_SECOND)+MARGINLEFT)/2;
      record.y = yCanvasPointer/2;
      record.toolTip = "blabjdsqodhqhjiouqh";
      record.enabled = true;
      canvas.addChild(record);

      I've implemented the get/set method of the tooltip in my component class (actionscript class).

      public override function get toolTip():String
      {
      return this.tooltipText;
      }

      public override function set toolTip(value:String):void
      {
      this.tooltipText = value;
      }

      Anybody any idea ?

      Thanks!
      Ward