Google is your friend:

http://www.google.com/search?q=flex+custom+tooltip

--- In [email protected], "ursprakash6" <urspraka...@...> wrote:
>
> Hi 
> 
> i want to show the tooltip with text and image content.
> but Tooltipmanager.createtooltip() only having the string type argument
> 
> so i have created one custom class called 'CustomTooltip'
> 
> 
> Now how to bind this with TooltipManager?
> 
> Can anybody help me?
> 
> here is the tooltip component code
> 
> CustomTooltip code:
> -----------------------
> 
> <?xml version="1.0" encoding="utf-8"?>
> <mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml"; 
> implements="mx.core.IToolTip" 
>     >
> 
>     <mx:Script>
>         <![CDATA[
>         [Bindable]
>         public var tvalue:Object;
>         
>         //  Implement required methods of the IToolTip interface; these 
>         //  methods are not used in this example, though.
>         public var _text:String;
> 
>         public function get text():String { 
>             return _text; 
>         } 
>         public function set text(value:String):void {
>         } 
>            
>         ]]>
>     </mx:Script>
> 
>     <mx:Image source="{tvalue.pic}"/-->
>     <mx:Form paddingBottom="10" paddingLeft="10" paddingRight="10" 
> paddingTop="10">
>         <mx:FormItem label="Date 333:">
>             <mx:Label text="{tvalue.date}"/>
>         </mx:FormItem>         
>          
>     </mx:Form>    
> </mx:VBox>
> 
> 
> 
> 
> GnanaPrakasam T
> <a href='http://gnanz-flexworld.blogspot.com'>Flex Samples</a>
>


Reply via email to