Creating ToolTip
September 29, 2009 at 8:33 am Leave a comment
Definition:
All visual components that extend the UI component class support a tool tip
property. When a mouse pointer hovers over the component, the string
appears in the tool tip.
Source Code:
<?xml version=”1.0″ encoding=”utf-8″?>
<mx:Application xmlns:mx=”http://www.adobe.com/2006/mxml”
creationComplete=”initApp()” layout=”absolute”>
<mx:Script>
<![CDATA[
import mx.controls.TextInput;
public function initApp():void
{
var myTextInput:TextInput = new TextInput();
myTextInput.toolTip = ” This is a TextInput Control”;
addChild(myTextInput);
}
]]>
</mx:Script>
</mx:Application>
With Regards
Hemakumar.S
Entry filed under: Flex. Tags: Hemakumar's Blog, SHK's Blog.
Trackback this post | Subscribe to the comments via RSS Feed