Hi Venkat,
Thanks for the quick reply. This is the function that has been
called on the rollover event. when the mouse is been placed over the
column(the data in the tooltip will be changed dynamically when it is
placed over each row) this function is been called. The ToolTip is
appearing all through the row of that column. Instead of appearing on
the data.
public function DisplayToolTip(event:MouseEvent):void{
var text:String;
var square:Sprite = new Sprite();
var positionX:Number = square.mouseX
var positionY:Number = square.mouseY
text = "Field Values are : "+"\r"+"\n";
text += "Materail Number:" +"
"+event.target.data.Mat_number
+"\r"+"\n";
text += "Item Description:" +"
"+event.target.data.Item_desc
+"\r"+"\n";
myToolTip =
ToolTipManager.createToolTip(text,positionX,positionY) as ToolTip;
myToolTip.setStyle("color","#000000");
myToolTip.width = 125;
myToolTip.height = 70;
}
I tried of putting your code inside this function. But could not find
out the change. I suppose i might have made the mistake.
Regards,
Malavika.
On Sep 3, 12:14 am, "Venkat Viswanathan" <
helloven...@gmail.com>
wrote:
> Hi Malavika,
>
> Inside the itemRenderer, put this code:
>
> var pt:Point = new Point(0,0);
> this.localToGlobal(pt);
>
> This will help you get the global x,y co-ordinates for individual
> itemRenderers.
>
> Let me know if this still doeskin solve your problem.
>
> Regards,
>
Venkatwww.venkatv.com
>