It works but now I am getting a strange behaviour. when I am rolling on a button and the tooltip shows it flickers. It's like it stuck beween rollover and rollout state. How can I get around that???
--- In [email protected], "Gordon Smith" <[EMAIL PROTECTED]> wrote: > > The ToolTipManager automatically positions the tooltip after the > "toolTipCreate" event but before the "toolTipShow" event. So reposition > it in a "toolTipShow" handler. > > > > Gordon Smith > > Adobe Flex SDK Team > > > > ________________________________ > > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of ezderman > Sent: Monday, April 28, 2008 3:01 PM > To: [email protected] > Subject: [flexcoders] Position custom Tooltip > > > > 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 > <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> >

