Muito Obrigado...

isso me ajuda muito,

mas nao teria algo mais "automatico", como por exemplo criar um
componente extendendo do tooltip, para que  eu possa simplesmente
definir a propriedade  ToolTip de um objeto, e ao inves de aparecer
como um tooltip aparecer excrito neste componente criado??


se nao tiver como, vou fazer essa ideia aí mesmo...

Obrigado!

On 14 jan, 09:06, KernelPanic AS3 <thiagooseg...@gmail.com> wrote:
> Bom dia Samuel, já tentou usar o método toolTipCreate?
>
> O segredo está que um componente da classe ToolTip aqui no caso tem de
> implementar IToolTip ;)
>
> implements="mx.core.IToolTip"
>
>  Acho que irá resolver seu problema.
>
> Um abraço
>
> <?xml version="1.0"?>
> <!-- tooltips/PanelToolTip.mxml -->
> <mx:Panel xmlns:mx="http://www.adobe.com/2006/mxml";
>     implements="mx.core.IToolTip"
>     width="200"
>     alpha=".8"
>     borderThickness="2"
>     backgroundColor="0xCCCCCC"
>     dropShadowEnabled="true"
>     borderColor="black"
>     borderStyle="solid"
>     title="feh"
>
>     <mx:Script><![CDATA[
>         [Bindable]
>         public var bodyText:String = "";
>
>         //  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:Text text="{bodyText}" percentWidth="100"/>
> </mx:Panel>
>
> --------------------------------------------------------------------------------
>
> <?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;
>         }
>     ]]></mx:Script>
>
>     <mx:Button id="b1"
>         label="Delete"
>         toolTip=" "
>         toolTipCreate="createCustomTip('DELETE','Click this button to
> delete the report.', event)"
>     />
>
>     <mx:Button id="b2"
>         label="Generate"
>         toolTip=" "
>         toolTipCreate="createCustomTip('GENERATE','Click this button
> to generate the report.', event)"
>     />
>
>     <mx:Button id="b3"
>         label="Stop"
>         toolTip="Click this button to stop the creation of the report.
> This button uses a standard ToolTip style."
>     />
> </mx:Application>
-- 
Você recebeu esta mensagem porque está inscrito na lista "flexdev"
Para enviar uma mensagem, envie um e-mail para flexdev@googlegroups.com
Para sair da lista, envie um email em branco para 
flexdev-unsubscr...@googlegroups.com
Mais opções estão disponíveis em http://groups.google.com/group/flexdev

Reply via email to