Components Flex


                verticalAlign="middle" horizontalAlign="center" height="250" width="400">
    
    
    import mx.controls.ToolTip;
    import mx.managers.ToolTipManager;
    private var tip:ToolTip;
    private function showTipA(event:Object):void {
        tip = ToolTipManager.createToolTip("a",
                                           event.currentTarget.x + event.currentTarget.width + 10,
                                           event.currentTarget.y) as ToolTip;
    }
    private function showTipB(event:Object):void {
        var pt:Point = new Point(event.currentTarget.x,event.currentTarget.y);
        pt = event.currentTarget.contentToGlobal(pt);
        tip = ToolTipManager.createToolTip("b",
                                           pt.x + event.currentTarget.width + 10,
                                           pt.y) as ToolTip;
    }
    private function destroyTip(event:Object):void {
        ToolTipManager.destroyToolTip(tip);
    }