<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Formatting multiple data tips in a Slider</title>
	<atom:link href="http://blog.flexexamples.com/2007/07/23/formatting-multiple-data-tips-in-a-slider/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com/2007/07/23/formatting-multiple-data-tips-in-a-slider/</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Sun, 12 Feb 2012 14:19:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: PR</title>
		<link>http://blog.flexexamples.com/2007/07/23/formatting-multiple-data-tips-in-a-slider/comment-page-1/#comment-40</link>
		<dc:creator>PR</dc:creator>
		<pubDate>Tue, 28 Apr 2009 16:58:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/07/23/formatting-multiple-data-tips-in-a-slider/#comment-40</guid>
		<description>I ran into this same issue, and as mentioned, the above solution doesn&#039;t really cut it.

I solved it by using the following dateTipFormatFunction:


private var currThumbIndex:int=0;
private function formatDataTip(value:Number):String{
	//need to determine which thumb we&#039;re on
	//when FIRST pressed on the thumb, the current value matches one of the two
	// thumb values.  Store the thumb index based on that.
	if(dateSlider.values[0]==value){
		currThumbIndex = 0;
	}else if(dateSlider.values[1]==value){
		currThumbIndex = 1;
	}

	if(currThumbIndex==0){
		return &quot;minimum&quot;;
	}else{
		return &quot;maximum&quot;;
	}

}</description>
		<content:encoded><![CDATA[<p>I ran into this same issue, and as mentioned, the above solution doesn&#8217;t really cut it.</p>
<p>I solved it by using the following dateTipFormatFunction:</p>
<p>private var currThumbIndex:int=0;<br />
private function formatDataTip(value:Number):String{<br />
	//need to determine which thumb we&#8217;re on<br />
	//when FIRST pressed on the thumb, the current value matches one of the two<br />
	// thumb values.  Store the thumb index based on that.<br />
	if(dateSlider.values[0]==value){<br />
		currThumbIndex = 0;<br />
	}else if(dateSlider.values[1]==value){<br />
		currThumbIndex = 1;<br />
	}</p>
<p>	if(currThumbIndex==0){<br />
		return &#8220;minimum&#8221;;<br />
	}else{<br />
		return &#8220;maximum&#8221;;<br />
	}</p>
<p>}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Clark</title>
		<link>http://blog.flexexamples.com/2007/07/23/formatting-multiple-data-tips-in-a-slider/comment-page-1/#comment-41</link>
		<dc:creator>Clark</dc:creator>
		<pubDate>Sat, 20 Sep 2008 18:02:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/07/23/formatting-multiple-data-tips-in-a-slider/#comment-41</guid>
		<description>I see what your saying P.

Is there a way to fix this. I have tried a few things but havin no luck.</description>
		<content:encoded><![CDATA[<p>I see what your saying P.</p>
<p>Is there a way to fix this. I have tried a few things but havin no luck.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: P</title>
		<link>http://blog.flexexamples.com/2007/07/23/formatting-multiple-data-tips-in-a-slider/comment-page-1/#comment-39</link>
		<dc:creator>P</dc:creator>
		<pubDate>Thu, 20 Mar 2008 13:27:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/07/23/formatting-multiple-data-tips-in-a-slider/#comment-39</guid>
		<description>Nice solution which almost works.  Try pressing and dragging either thumb.  Now press down on the other thumb (but don&#039;t move the slider right away).  You&#039;ll see that the datatip will still display the text from the first thumb you moved.  This is because the datatip function is called to display before the thumb index is updated, thus displaying old data.</description>
		<content:encoded><![CDATA[<p>Nice solution which almost works.  Try pressing and dragging either thumb.  Now press down on the other thumb (but don&#8217;t move the slider right away).  You&#8217;ll see that the datatip will still display the text from the first thumb you moved.  This is because the datatip function is called to display before the thumb index is updated, thus displaying old data.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

