<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Nicer Tooltips and balloon help for Flex 4</title>
	<atom:link href="http://www.hulstkamp.com/2010/05/30/nicer-tooltips-and-balloon-help-for-flex-4/525/feed" rel="self" type="application/rss+xml" />
	<link>http://www.hulstkamp.com/2010/05/30/nicer-tooltips-and-balloon-help-for-flex-4/525</link>
	<description>andy hulstkamp blog about rich internet applications, flex, flash, java, webapps, web, code, experiments</description>
	<pubDate>Sat, 04 Feb 2012 23:20:01 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
		<item>
		<title>By: Andy Hulstkamp</title>
		<link>http://www.hulstkamp.com/2010/05/30/nicer-tooltips-and-balloon-help-for-flex-4/525#comment-1136</link>
		<dc:creator>Andy Hulstkamp</dc:creator>
		<pubDate>Wed, 19 Oct 2011 08:38:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.hulstkamp.com/?p=525#comment-1136</guid>
		<description>Sam,

See the discussion above with Todd and Kevin.</description>
		<content:encoded><![CDATA[<p>Sam,</p>
<p>See the discussion above with Todd and Kevin.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam</title>
		<link>http://www.hulstkamp.com/2010/05/30/nicer-tooltips-and-balloon-help-for-flex-4/525#comment-1071</link>
		<dc:creator>Sam</dc:creator>
		<pubDate>Fri, 09 Sep 2011 09:59:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.hulstkamp.com/?p=525#comment-1071</guid>
		<description>Hi Andy,

In my application, the tooltip's title and text should be displayed dynamicly.  From example, there is button which label will be often changed by user.  And its tooltip will always display the latest label string.  

How could I do when use your nice tooltip?

Thanks!</description>
		<content:encoded><![CDATA[<p>Hi Andy,</p>
<p>In my application, the tooltip&#8217;s title and text should be displayed dynamicly.  From example, there is button which label will be often changed by user.  And its tooltip will always display the latest label string.  </p>
<p>How could I do when use your nice tooltip?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://www.hulstkamp.com/2010/05/30/nicer-tooltips-and-balloon-help-for-flex-4/525#comment-604</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Wed, 22 Jun 2011 22:12:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.hulstkamp.com/?p=525#comment-604</guid>
		<description>Hi Andy,

I've incorporated your wonderful Nicer Tooltips into an AIR project I'm working on.

Is there a way to restrict the tooltip to the stage? (it is occasionally popping up partially off-stage :-P )

thanks,

Mark</description>
		<content:encoded><![CDATA[<p>Hi Andy,</p>
<p>I&#8217;ve incorporated your wonderful Nicer Tooltips into an AIR project I&#8217;m working on.</p>
<p>Is there a way to restrict the tooltip to the stage? (it is occasionally popping up partially off-stage <img src='http://www.hulstkamp.com/soil/wp-includes/images/smilies/icon_razz.gif' alt=':-P' class='wp-smiley' /> )</p>
<p>thanks,</p>
<p>Mark</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Hulstkamp</title>
		<link>http://www.hulstkamp.com/2010/05/30/nicer-tooltips-and-balloon-help-for-flex-4/525#comment-477</link>
		<dc:creator>Andy Hulstkamp</dc:creator>
		<pubDate>Thu, 17 Mar 2011 08:17:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.hulstkamp.com/?p=525#comment-477</guid>
		<description>Thijs

This answer took a while, sorry;-)

There's no reason to use the DownlaodProgressbar instead of the SparkDownloadProgressBar. I simply didn't pay much attention, since the only purpose of extending the Progressbar is to inject the custom ToolTipManagerImpl. Thanks for pointing this out!

Andy</description>
		<content:encoded><![CDATA[<p>Thijs</p>
<p>This answer took a while, sorry;-)</p>
<p>There&#8217;s no reason to use the DownlaodProgressbar instead of the SparkDownloadProgressBar. I simply didn&#8217;t pay much attention, since the only purpose of extending the Progressbar is to inject the custom ToolTipManagerImpl. Thanks for pointing this out!</p>
<p>Andy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thijs</title>
		<link>http://www.hulstkamp.com/2010/05/30/nicer-tooltips-and-balloon-help-for-flex-4/525#comment-440</link>
		<dc:creator>Thijs</dc:creator>
		<pubDate>Tue, 01 Mar 2011 15:04:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.hulstkamp.com/?p=525#comment-440</guid>
		<description>Any reason you extend DownloadProgressbar instead of SparkDownloadProgressBar? At first glance they both seem to work correctly, only difference is the look.</description>
		<content:encoded><![CDATA[<p>Any reason you extend DownloadProgressbar instead of SparkDownloadProgressBar? At first glance they both seem to work correctly, only difference is the look.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shaman4d</title>
		<link>http://www.hulstkamp.com/2010/05/30/nicer-tooltips-and-balloon-help-for-flex-4/525#comment-432</link>
		<dc:creator>shaman4d</dc:creator>
		<pubDate>Tue, 01 Feb 2011 15:42:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.hulstkamp.com/?p=525#comment-432</guid>
		<description>Thank you a lot Andy. Especially thank you for your last post with example of dynamic tooltip.</description>
		<content:encoded><![CDATA[<p>Thank you a lot Andy. Especially thank you for your last post with example of dynamic tooltip.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Hulstkamp</title>
		<link>http://www.hulstkamp.com/2010/05/30/nicer-tooltips-and-balloon-help-for-flex-4/525#comment-360</link>
		<dc:creator>Andy Hulstkamp</dc:creator>
		<pubDate>Tue, 02 Nov 2010 18:36:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.hulstkamp.com/?p=525#comment-360</guid>
		<description>Kevin,

Here's a quick demo implementation of the aforementioned approaches.

&lt;a href="http://www.hulstkamp.com/byard/flex4/AHNiceToolTip/update/Flex4NiceTooltips.fxp" rel="nofollow"&gt;get the fxp here&lt;/a&gt;. 

Look at NiceToolTipManagerImpl Line #275 and #209 for the code that looks up the text.

Look at TextInputWithOverridenDynamicToolTipText for an example that uses the OOP-Approach.

hope this helps
andy</description>
		<content:encoded><![CDATA[<p>Kevin,</p>
<p>Here&#8217;s a quick demo implementation of the aforementioned approaches.</p>
<p><a href="http://www.hulstkamp.com/byard/flex4/AHNiceToolTip/update/Flex4NiceTooltips.fxp" rel="nofollow">get the fxp here</a>. </p>
<p>Look at NiceToolTipManagerImpl Line #275 and #209 for the code that looks up the text.</p>
<p>Look at TextInputWithOverridenDynamicToolTipText for an example that uses the OOP-Approach.</p>
<p>hope this helps<br />
andy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin</title>
		<link>http://www.hulstkamp.com/2010/05/30/nicer-tooltips-and-balloon-help-for-flex-4/525#comment-359</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Tue, 02 Nov 2010 16:20:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.hulstkamp.com/?p=525#comment-359</guid>
		<description>Hi, 
I'm having the same issue as the above poster regarding dynamic text in the tooltip. I'm having a hard time implementing/understanding your suggestion. Do you have an example using this approach or could you possibly provide a little more detail? 
Thanks

Kevin</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I&#8217;m having the same issue as the above poster regarding dynamic text in the tooltip. I&#8217;m having a hard time implementing/understanding your suggestion. Do you have an example using this approach or could you possibly provide a little more detail?<br />
Thanks</p>
<p>Kevin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Hulstkamp</title>
		<link>http://www.hulstkamp.com/2010/05/30/nicer-tooltips-and-balloon-help-for-flex-4/525#comment-302</link>
		<dc:creator>Andy Hulstkamp</dc:creator>
		<pubDate>Tue, 21 Sep 2010 20:56:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.hulstkamp.com/?p=525#comment-302</guid>
		<description>Todd

First note that standard Flex tooltips can be customized and if using the Flex ToolTipManager the value in the tooltip property is interpreted as the string to display in the tooltip. You can set this string any time at runtime - based on your data.

This example uses a custom ToolTipManager to look up title, text, styles etc. in resource bundles. For this, the value in the tooltip property is interpreted as a key to look up the text etc. in the bundles.

In assignResourcesToToolTip() of NiceToolTipManagerImpl you could change the way of how the values are looked up and assigned to the tooltip.

For instance you could introduce further tokens for the value in the tooltip property and parse these tokens as parameters to get a parametrized text from the resource bundle

• Bundle.Key#dynamic text
• parse #tokens to use as params in resource bundle lookup
• var toolTipText:String = ResourceManager.getInstance().getString(bundleKey, lookupKey + ".text", params);

For a more OOP approach you could introduce some interface like IToolTipTextOverride that has a get / set toolTipOverride():String function. 

Let your components implement this interface (returning a string based on your data) and in NiceToolTipManagerImpl check to see if the currentTarget (the component the tooltip should be shown on) is of type IToolTipTextOverride. 

If true get the text from the toolTipOverride property of the currentTarget instead of looking it up from the resource bundle and assign this text to the tooltip text.

Andy</description>
		<content:encoded><![CDATA[<p>Todd</p>
<p>First note that standard Flex tooltips can be customized and if using the Flex ToolTipManager the value in the tooltip property is interpreted as the string to display in the tooltip. You can set this string any time at runtime - based on your data.</p>
<p>This example uses a custom ToolTipManager to look up title, text, styles etc. in resource bundles. For this, the value in the tooltip property is interpreted as a key to look up the text etc. in the bundles.</p>
<p>In assignResourcesToToolTip() of NiceToolTipManagerImpl you could change the way of how the values are looked up and assigned to the tooltip.</p>
<p>For instance you could introduce further tokens for the value in the tooltip property and parse these tokens as parameters to get a parametrized text from the resource bundle</p>
<p>• Bundle.Key#dynamic text<br />
• parse #tokens to use as params in resource bundle lookup<br />
• var toolTipText:String = ResourceManager.getInstance().getString(bundleKey, lookupKey + &#8220;.text&#8221;, params);</p>
<p>For a more OOP approach you could introduce some interface like IToolTipTextOverride that has a get / set toolTipOverride():String function. </p>
<p>Let your components implement this interface (returning a string based on your data) and in NiceToolTipManagerImpl check to see if the currentTarget (the component the tooltip should be shown on) is of type IToolTipTextOverride. </p>
<p>If true get the text from the toolTipOverride property of the currentTarget instead of looking it up from the resource bundle and assign this text to the tooltip text.</p>
<p>Andy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Todd</title>
		<link>http://www.hulstkamp.com/2010/05/30/nicer-tooltips-and-balloon-help-for-flex-4/525#comment-300</link>
		<dc:creator>Todd</dc:creator>
		<pubDate>Mon, 20 Sep 2010 13:53:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.hulstkamp.com/?p=525#comment-300</guid>
		<description>Hello,

Is there a way to pass in dynamic text based off the object that the tool tip is called on?  I would like to use some of the data to seed part of the text.

Thoughts?

Thanks.</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>Is there a way to pass in dynamic text based off the object that the tool tip is called on?  I would like to use some of the data to seed part of the text.</p>
<p>Thoughts?</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

