To set a ToolTip value in ActionScript
<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Script> public function createNewButton(event:MouseEvent):void { var myButton:Button = new Button(); myButton.label = "Create Button"; myButton.toolTip = "tooltip."; myButton.addEventListener(MouseEvent.CLICK, createNewButton); addChild(myButton); } </mx:Script> <mx:Button id="b1" label="Create Another Button" click="createNewButton(event);" /> </mx:Application>