<?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: ComboBox List ToolTip</title>
	<atom:link href="http://ixd-consultant.com/blog/2008/09/17/combobox-list-tooltip/feed/" rel="self" type="application/rss+xml" />
	<link>http://ixd-consultant.com/blog/2008/09/17/combobox-list-tooltip/</link>
	<description>IA, UX, AS, Thoughts</description>
	<lastBuildDate>Sat, 23 Apr 2011 12:51:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: xVisage</title>
		<link>http://ixd-consultant.com/blog/2008/09/17/combobox-list-tooltip/comment-page-1/#comment-10</link>
		<dc:creator>xVisage</dc:creator>
		<pubDate>Fri, 12 Dec 2008 18:18:45 +0000</pubDate>
		<guid isPermaLink="false">http://interactive-developer.com/blog/?p=60#comment-10</guid>
		<description>Thank you Phil for your note, it is a fatal of course ..
I did update the code above [view source], one additional condition needed for hideListTip function as follows:
&lt;pre lang=&quot;actionscript3&quot;&gt;
private function hideListTip(event:*):void {
	if (customTip != null) {
		if (ComboBox(event.target).dropdown.contains(customTip)) {
			ComboBox(event.target).dropdown.removeChild(customTip);
		}
		customTip = null;
	}
}
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Thank you Phil for your note, it is a fatal of course ..<br />
I did update the code above [view source], one additional condition needed for hideListTip function as follows:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> hideListTip<span style="color: #000000;">&#40;</span>event<span style="color: #000066; font-weight: bold;">:*</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
	<span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>customTip <span style="color: #000066; font-weight: bold;">!</span>= <span style="color: #0033ff; font-weight: bold;">null</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
		<span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>ComboBox<span style="color: #000000;">&#40;</span>event<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">target</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">.</span>dropdown<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">contains</span><span style="color: #000000;">&#40;</span>customTip<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
			ComboBox<span style="color: #000000;">&#40;</span>event<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">target</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">.</span>dropdown<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">removeChild</span><span style="color: #000000;">&#40;</span>customTip<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #000000;">&#125;</span>
		customTip = <span style="color: #0033ff; font-weight: bold;">null</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: Phil</title>
		<link>http://ixd-consultant.com/blog/2008/09/17/combobox-list-tooltip/comment-page-1/#comment-9</link>
		<dc:creator>Phil</dc:creator>
		<pubDate>Fri, 12 Dec 2008 16:10:33 +0000</pubDate>
		<guid isPermaLink="false">http://interactive-developer.com/blog/?p=60#comment-9</guid>
		<description>Dude, you code is rocking, BUT it has a fatal flaw that is even reproducable on your page.  I see the tooltips as expected. However, select an item in the list. and close the list.  Try to open the list again and you app crashes. PLEASE tell us how to fix this.

Here is the error:

ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
	at flash.display::DisplayObjectContainer/removeChild()
	at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::$removeChild()
	at mx.core::UIComponent/removeChild()
	at combotip/hideListTip()
	at combotip/showListTip()
	at combotip/___combotip_ComboBox1_itemRollOver()
	at flash.events::EventDispatcher/dispatchEventFunction()
	at flash.events::EventDispatcher/dispatchEvent()
	at mx.core::UIComponent/dispatchEvent()
	at mx.controls::ComboBox/dropdown_itemRollOverHandler()</description>
		<content:encoded><![CDATA[<p>Dude, you code is rocking, BUT it has a fatal flaw that is even reproducable on your page.  I see the tooltips as expected. However, select an item in the list. and close the list.  Try to open the list again and you app crashes. PLEASE tell us how to fix this.</p>
<p>Here is the error:</p>
<p>ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.<br />
	at flash.display::DisplayObjectContainer/removeChild()<br />
	at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::$removeChild()<br />
	at mx.core::UIComponent/removeChild()<br />
	at combotip/hideListTip()<br />
	at combotip/showListTip()<br />
	at combotip/___combotip_ComboBox1_itemRollOver()<br />
	at flash.events::EventDispatcher/dispatchEventFunction()<br />
	at flash.events::EventDispatcher/dispatchEvent()<br />
	at mx.core::UIComponent/dispatchEvent()<br />
	at mx.controls::ComboBox/dropdown_itemRollOverHandler()</p>
]]></content:encoded>
	</item>
</channel>
</rss>

