Try this.
You may have to adjust the code.
<?xml version="1.0"?>
<!-- tooltips/PlacingToolTips.mxml -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
verticalAlign="middle" horizontalAlign="center">
<mx:Script>
<![CDATA[
import mx.controls.ToolTip;
import mx.managers.ToolTipManager;
private var tip:ToolTip;
private var s:String;
private function showTip(event:Object):void {
s="My ToolTip";
// Position the ToolTip to the right of the current target.
tip = ToolTipManager.createToolTip(s,
event.currentTarget.x + event.currentTarget.width + 150,
event.currentTarget.y)
as ToolTip;
}
private function destroyTip(event:Object):void {
ToolTipManager.destroyToolTip(tip);
}
]]>
</mx:Script>
<mx:Panel title="ToolTips" x="50" width="300" height="500">
<mx:Image id="phone" horizontalCenter="0" verticalCenter="0"
source="@Embed('/assets/phone_3.png')" rollOver="showTip(event)"
rollOut="destroyTip(event)"/>
</mx:Panel>
</mx:Application>
On Tue, May 19, 2009 at 1:29 AM, shaan <[email protected]> wrote:
>
> can anyone plzzz lookinto the above issue..
> atleast an hint will do...
>
> thanks in advance
>
> On May 15, 1:48 pm, shaan <[email protected]> wrote:
> > Hello All,
> >
> > I was wondering if anyone know whether it is possible to have a moving
> > tooltip on an image or a button.
> > The tooltip should stay visible as long as the cursor is on the image,
> > and chase the mouse cursor around the image.
> > The default tooltip remains in its position and doesn't move when the
> > mouse cursor moves on the image.
> >
> > thanks in advance.
>
> >
>
--
Sincerely
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Edwin Melendez
Print/Web/Media
646-246-4368
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---