Hi All,
Is there any way can I give tooltip to images w/o using an Image renderer since 
for some reason When I use an Image renderer the images are not created 
properly. Some of the icons gets created and some of them are missing. I have 
5000 to 10000 icons in the AdvancedGridColumn.
 
Below is my image Renderer 
 
 
package 
{


import mx.controls.*;
import mx.events.ItemClickEvent; 
import mx.core.*;
import mx.containers.Canvas; 


public class ImageRenderer extends Canvas implements IDataRenderer
{


private var healthimage:Image= new Image(); 
private var _data:Object;
private var imageReference:Image = null;



public function ImageRenderer()
{
super();
}



override public function set data(value:Object) :void
{

if(healthimage) 
{

healthimage.source= value.Health ; 


if( healthimage.source.indexOf("0") > 0){
healthimage.toolTip="Normal";
}else if (healthimage.source.indexOf("1") > 0){
healthimage.toolTip="Minor";
}else if(healthimage.source.indexOf("2") > 0){
healthimage.toolTip="Major";
}else if(healthimage.source.indexOf("3") > 0){
healthimage.toolTip="Critical";
}else if(healthimage.source.indexOf("4") > 0){
healthimage.toolTip="Down";
}else{
healthimage.toolTip="Error"; 
}
}

;
}
override protected function createChildren():void
{
super.createChildren(); 
healthimage = new Image(); 
healthimage.setStyle("horizontalCenter", 0);
healthimage.setStyle("verticalCenter", 0); 
addChild(healthimage) ;


}
}



}
 
 
Thanks in Advance,
Anitha.

Reply via email to