am trying to add tooltip for cell component, in that cell i have 2 item
like (time on project, time on other project)... i did it successfully but
destroying the tool tip i face a problem can any one help me......
the code is like this..
private function createtooltip():void
{
if(timeOnProject){
var _s:String=String(timeOnProject);
mytip=
ToolTipManager.createToolTip(_s,root.mouseX,root.mouseY)as ToolTip;
mytip.setStyle("backgroundColor",0x333333);
mytip.setStyle("color",0xFE4D25);
mytip.setStyle("fontSize",20);
mytip.width=40;
mytip.height=40;
}
else{
var _s1:String=String(timeOnOtherProject);
mytip1=
ToolTipManager.createToolTip(_s1,root.mouseX,root.mouseY)as ToolTip;
mytip1.setStyle("backgroundColor",0x333333);
mytip1.setStyle("color",0xFE4D25);
mytip1.setStyle("fontSize",20);
mytip1.width=40;
mytip1.height=40;
}
}
public function DissableTooltip():void{
ToolTipManager.destroyToolTip(mytip);
ToolTipManager.destroyToolTip(mytip1);
CursorManager.removeAllCursors();
}
--
ashok vardhan
--
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en.