Tim, you have to declare myTip to be of the type IToolTip.

public var myTip:IToolTip;

hth
charles

On Mar 19, 2009, at 4:05 PM, timgerr wrote:

> Hello all,
> I am creating my own tooltip and I am getting an error, this code  
> comes from adobe examples.  Here is the code:
>
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";>
>    <mx:Script><![CDATA[
>    import mx.managers.ToolTipManager;
>    import mx.controls.ToolTip;
>
>    public var myTip:ToolTip;
> ...
> I get this error:
> Implicit coercion of a value of type ToolTip to an unrelated type  
> mx.core:IToolTip.
>
> At this piece of code:
> ToolTipManager.destroyToolTip(myTip);
>
> Can someone tell me what I am doing wrong?
>
> Thank you,
> Tim Gallagher
>

Reply via email to