<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Controlling a Flex tool tip&#8217;s show delay, hide delay, and scrub delay</title>
	<link>http://blog.flexexamples.com/2007/09/03/controlling-a-flex-tool-tips-show-delay-hide-delay-and-scrub-delay/</link>
	<description>A bunch of examples for Adobe Flex and ActionScript</description>
	<pubDate>Fri, 05 Dec 2008 10:16:50 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>

	<item>
		<title>By: sydd</title>
		<link>http://blog.flexexamples.com/2007/09/03/controlling-a-flex-tool-tips-show-delay-hide-delay-and-scrub-delay/#comment-17138</link>
		<author>sydd</author>
		<pubDate>Tue, 02 Dec 2008 15:44:09 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/09/03/controlling-a-flex-tool-tips-show-delay-hide-delay-and-scrub-delay/#comment-17138</guid>
		<description>Hi
great blog!

i have a question too:
How can you dispatch the show tooltip event if im using a custom tooltip?
eg im using these 2 events to contol my tooltip:

this.addEventListener(ToolTipEvent.TOOL_TIP_CREATE,createCustomTip)
this.addEventListener(ToolTipEvent.TOOL_TIP_SHOW,positionTip)

they get fired automatically if i hover the mouse over my sprite, but i want to
show the tooltip in other cases too (like if the sprite coordinates have a specified value)</description>
		<content:encoded><![CDATA[<p>Hi<br />
great blog!</p>
<p>i have a question too:<br />
How can you dispatch the show tooltip event if im using a custom tooltip?<br />
eg im using these 2 events to contol my tooltip:</p>
<p>this.addEventListener(ToolTipEvent.TOOL_TIP_CREATE,createCustomTip)<br />
this.addEventListener(ToolTipEvent.TOOL_TIP_SHOW,positionTip)</p>
<p>they get fired automatically if i hover the mouse over my sprite, but i want to<br />
show the tooltip in other cases too (like if the sprite coordinates have a specified value)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2007/09/03/controlling-a-flex-tool-tips-show-delay-hide-delay-and-scrub-delay/#comment-16958</link>
		<author>peterd</author>
		<pubDate>Sat, 29 Nov 2008 21:36:16 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/09/03/controlling-a-flex-tool-tips-show-delay-hide-delay-and-scrub-delay/#comment-16958</guid>
		<description>Michael,

It may differ depending on the component, but try setting the &lt;code&gt;toolTip&lt;/code&gt; property to an empty string.

Peter</description>
		<content:encoded><![CDATA[<p>Michael,</p>
<p>It may differ depending on the component, but try setting the <code>toolTip</code> property to an empty string.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://blog.flexexamples.com/2007/09/03/controlling-a-flex-tool-tips-show-delay-hide-delay-and-scrub-delay/#comment-16944</link>
		<author>Michael</author>
		<pubDate>Fri, 28 Nov 2008 22:24:09 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/09/03/controlling-a-flex-tool-tips-show-delay-hide-delay-and-scrub-delay/#comment-16944</guid>
		<description>Hello, do you know how to disable a tooltip for a certain component?</description>
		<content:encoded><![CDATA[<p>Hello, do you know how to disable a tooltip for a certain component?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug Marttila</title>
		<link>http://blog.flexexamples.com/2007/09/03/controlling-a-flex-tool-tips-show-delay-hide-delay-and-scrub-delay/#comment-5883</link>
		<author>Doug Marttila</author>
		<pubDate>Mon, 07 Jan 2008 22:30:32 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/09/03/controlling-a-flex-tool-tips-show-delay-hide-delay-and-scrub-delay/#comment-5883</guid>
		<description>Hey - Just wanted to say thanks for the helpful blog. Please keep up the great work. -- doug</description>
		<content:encoded><![CDATA[<p>Hey - Just wanted to say thanks for the helpful blog. Please keep up the great work. &#8212; doug</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2007/09/03/controlling-a-flex-tool-tips-show-delay-hide-delay-and-scrub-delay/#comment-2662</link>
		<author>peterd</author>
		<pubDate>Thu, 20 Sep 2007 14:29:26 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/09/03/controlling-a-flex-tool-tips-show-delay-hide-delay-and-scrub-delay/#comment-2662</guid>
		<description>levan,

Yeah, you can use the ToolTipManager class. I think I may even have an example of that somewhere already. Check out the "&lt;a href="http://blog.flexexamples.com/2007/08/15/creating-tool-tips-manually-using-the-tooltipmanager-class/" rel="nofollow"&gt;Creating tool tips manually using the ToolTipManager class&lt;/a&gt;" entry and let me know if that was what you were looking for.

Peter

Update: Here's a slightly simpler example. To remove the tooltip (note that you can have multiple tool tips visible at the same time using the ToolTipManager class), simply call the &lt;code&gt;ToolTipManager.destroyToolTip()&lt;/code&gt; method and pass in the tool tip instance to delete.
&lt;pre class="code"&gt;
&#60;?xml version="1.0" encoding="utf-8"?&#62;
&#60;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"&#62;

    &#60;mx:Script&#62;
        &#60;![CDATA[
            import mx.controls.ToolTip;
            import mx.managers.ToolTipManager;

            private var tt:ToolTip;

            private function create_toolTip():void {
                var str:String = "Tooltip text goes here...";
                // We only want one tooltip.
                if (tt == null) {
                    tt = ToolTipManager.createToolTip(str, 100, 50) as ToolTip;
                }
            }
        ]]&#62;
    &#60;/mx:Script&#62;

    &#60;mx:ApplicationControlBar dock="true"&#62;
        &#60;mx:Button label="create tool tip" click="create_toolTip();" /&#62;
    &#60;/mx:ApplicationControlBar&#62;

&#60;/mx:Application&#62;
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>levan,</p>
<p>Yeah, you can use the ToolTipManager class. I think I may even have an example of that somewhere already. Check out the &#8220;<a href="http://blog.flexexamples.com/2007/08/15/creating-tool-tips-manually-using-the-tooltipmanager-class/" rel="nofollow">Creating tool tips manually using the ToolTipManager class</a>&#8221; entry and let me know if that was what you were looking for.</p>
<p>Peter</p>
<p>Update: Here&#8217;s a slightly simpler example. To remove the tooltip (note that you can have multiple tool tips visible at the same time using the ToolTipManager class), simply call the <code>ToolTipManager.destroyToolTip()</code> method and pass in the tool tip instance to delete.</p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            import mx.controls.ToolTip;
            import mx.managers.ToolTipManager;

            private var tt:ToolTip;

            private function create_toolTip():void {
                var str:String = "Tooltip text goes here...";
                // We only want one tooltip.
                if (tt == null) {
                    tt = ToolTipManager.createToolTip(str, 100, 50) as ToolTip;
                }
            }
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:ApplicationControlBar dock="true"&gt;
        &lt;mx:Button label="create tool tip" click="create_toolTip();" /&gt;
    &lt;/mx:ApplicationControlBar&gt;

&lt;/mx:Application&gt;
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: levan</title>
		<link>http://blog.flexexamples.com/2007/09/03/controlling-a-flex-tool-tips-show-delay-hide-delay-and-scrub-delay/#comment-2661</link>
		<author>levan</author>
		<pubDate>Thu, 20 Sep 2007 14:16:15 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/09/03/controlling-a-flex-tool-tips-show-delay-hide-delay-and-scrub-delay/#comment-2661</guid>
		<description>nice example. my interest is still to find a way to programatically triger tooltip without user mouse overing on a component, is it possible?</description>
		<content:encoded><![CDATA[<p>nice example. my interest is still to find a way to programatically triger tooltip without user mouse overing on a component, is it possible?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
