I created a custom Tooltip that extends Panel. I am attaching the 
tooltip like this but I can not position the tooltip where I want it. 
I can rotate it. any idea??? here is my code. Thanks

<?xml version="1.0"?>
<!-- tooltips/MainCustomApp.mxml -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";>
    <mx:Script><![CDATA[
        import ToolTipComponents.PanelToolTip;
        import mx.events.ToolTipEvent;
        
        private function createCustomTip(title:String, body:String, 
event:ToolTipEvent):void {
           var ptt:PanelToolTip = new PanelToolTip();
           ptt.title = title;
           ptt.bodyText = body;
           event.toolTip = ptt;
           event.toolTip.y = 0; (this is my problem)
           event.toolTip.rotation = 10;
        }
    ]]></mx:Script>
    
    <mx:Button id="b1" 
        label="Delete" 
        toolTip=" " 
        toolTipCreate="createCustomTip('DELETE','Click this button to 
delete the report.', event)"
    /> 


    


</mx:Application>


Reply via email to