my code is like this am using destroy method but it shows error

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);
 }

even though am getting error message.... plz help me
On Mon, Aug 2, 2010 at 5:19 PM, Rajesh Sharma <[email protected]>wrote:

> Use this :-ToolTipManager.destroyToolTip
>
> --
> 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]<flex_india%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/flex_india?hl=en.
>



-- 
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.

Reply via email to