<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>getRIAed &#187; Listbox</title>
	<atom:link href="http://ravimarella.com/getriaed/tag/listbox/feed/" rel="self" type="application/rss+xml" />
	<link>http://ravimarella.com/getriaed</link>
	<description>flex,flash,AIR</description>
	<lastBuildDate>Wed, 28 Jul 2010 19:34:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Tooltip custom Placement on Flex Listbox rollover</title>
		<link>http://ravimarella.com/getriaed/2009/06/18/tooltip-custom-placement-on-flex-listbox-rollover/</link>
		<comments>http://ravimarella.com/getriaed/2009/06/18/tooltip-custom-placement-on-flex-listbox-rollover/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 10:44:36 +0000</pubDate>
		<dc:creator>ravi</dc:creator>
				<category><![CDATA[Listbox]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[tooltip]]></category>
		<category><![CDATA[Custom]]></category>

		<guid isPermaLink="false">http://ravimarella.com/getriaed/?p=14</guid>
		<description><![CDATA[The example below shows how to add a tooltip on roll over event of flex ListBox items. I don&#8217;t say that this is the perfect way to do this&#8230;but i&#8217;m happy as long as it serves me&#8230; 
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_ListBoxRollover_1886388396"
			class="flashmovie"
			width="400"
			height="300">
	<param name="movie" value="http://ravimarella.com/getriaed/wp-content/uploads/2009/06/ListBoxRollover.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://ravimarella.com/getriaed/wp-content/uploads/2009/06/ListBoxRollover.swf"
			name="fm_ListBoxRollover_1886388396"
			width="400"
			height="300">
	<!--<![endif]-->
		 
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object> just rollover any of the listbox items and it will [...]]]></description>
			<content:encoded><![CDATA[<p>The example below shows how to add a tooltip on roll over event of flex ListBox items. I don&#8217;t say that this is the perfect way to do this&#8230;but i&#8217;m happy as long as it serves me&#8230;<br />
<span id="more-14"></span><br />

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_ListBoxRollover_1238605681"
			class="flashmovie"
			width="400"
			height="300">
	<param name="movie" value="http://ravimarella.com/getriaed/wp-content/uploads/2009/06/ListBoxRollover.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://ravimarella.com/getriaed/wp-content/uploads/2009/06/ListBoxRollover.swf"
			name="fm_ListBoxRollover_1238605681"
			width="400"
			height="300">
	<!--<![endif]-->
		<a href="http://adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>

	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
<p>just rollover any of the listbox items and it will show the index of that item. So once you&#8217;ve the index, i guess you can do any custom label operations.</p>
<p>Here is the source code for the above example:</p>
<div class="codecolorer-container actionscript3 default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br /></div></td><td><div class="actionscript3 codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;!</span><span style="color: #000000;">&#91;</span>CDATA<span style="color: #000000;">&#91;</span><br />
<span style="color: #0033ff; font-weight: bold;">import</span> mx.managers.ToolTipManager;<br />
<span style="color: #0033ff; font-weight: bold;">import</span> mx.controls.ToolTip;<br />
<span style="color: #0033ff; font-weight: bold;">import</span> mx.events.ListEvent;<br />
<span style="color: #0033ff; font-weight: bold;">import</span> mx.events.ToolTipEvent;<br />
<span style="color: #0033ff; font-weight: bold;">import</span> mx.collections.ArrayCollection;<br />
<span style="color: #000000;">&#91;</span>Bindable<span style="color: #000000;">&#93;</span><br />
<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> myDP<span style="color: #000000; font-weight: bold;">:</span>ArrayCollection = <span style="color: #0033ff; font-weight: bold;">new</span> ArrayCollection<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">&#123;</span><span style="color: #004993;">name</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #990000;">&quot;Ted Patrick&quot;</span>, blog<span style="color: #000000; font-weight: bold;">:</span><span style="color: #990000;">&quot;http://www.onflex.org/&quot;</span><span style="color: #000000;">&#125;</span>,<br />
<span style="color: #000000;">&#123;</span><span style="color: #004993;">name</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #990000;">&quot;Ryan Stewart&quot;</span>, blog<span style="color: #000000; font-weight: bold;">:</span><span style="color: #990000;">&quot;http://blogs.zdnet.com/Stewart&quot;</span><span style="color: #000000;">&#125;</span>,<span style="color: #000000;">&#123;</span><span style="color: #004993;">name</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #990000;">&quot;Peter DeHann&quot;</span>, blog<span style="color: #000000; font-weight: bold;">:</span><span style="color: #990000;">&quot;http://blog.flexexamples.com/&quot;</span><span style="color: #000000;">&#125;</span>,<br />
<span style="color: #000000;">&#123;</span><span style="color: #004993;">name</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #990000;">&quot;Raghu&quot;</span>, blog<span style="color: #000000; font-weight: bold;">:</span><span style="color: #990000;">&quot;http://raghuonflex.wordpress.com/&quot;</span><span style="color: #000000;">&#125;</span>,<span style="color: #000000;">&#123;</span><span style="color: #004993;">name</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #990000;">&quot;Harish Sivaramakrishnan&quot;</span>, blog<span style="color: #000000; font-weight: bold;">:</span><span style="color: #990000;">&quot;http://flexgeek.wordpress.com/&quot;</span><span style="color: #000000;">&#125;</span><br />
<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>;<br />
<br />
<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> tip<span style="color: #000000; font-weight: bold;">:</span>ToolTip<br />
<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> itemRollOver<span style="color: #000000;">&#40;</span>event<span style="color: #000000; font-weight: bold;">:</span>ListEvent<span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span><br />
<span style="color: #000000;">&#123;</span><br />
<br />
tip = ToolTipManager.createToolTip<span style="color: #000000;">&#40;</span>event.rowIndex<span style="color: #000000; font-weight: bold;">+</span><span style="color: #990000;">&quot;&quot;</span>,event.<span style="color: #004993;">currentTarget</span>.<span style="color: #004993;">x</span><span style="color: #000000; font-weight: bold;">+</span>event.<span style="color: #004993;">currentTarget</span>.<span style="color: #004993;">width</span>,event.<span style="color: #004993;">currentTarget</span>.<span style="color: #004993;">mouseY</span><span style="color: #000000;">&#41;</span><span style="color: #0033ff; font-weight: bold;">as</span> ToolTip;<br />
<span style="color: #000000;">&#125;</span><br />
<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> itemRollOut<span style="color: #000000;">&#40;</span>event<span style="color: #000000; font-weight: bold;">:</span>ListEvent<span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span><br />
<span style="color: #000000;">&#123;</span><br />
ToolTipManager.destroyToolTip<span style="color: #000000;">&#40;</span>tip<span style="color: #000000;">&#41;</span><br />
<span style="color: #000000;">&#125;</span><br />
<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#93;</span><span style="color: #000000; font-weight: bold;">&gt;</span><br />
<br />
itemRollOver=<span style="color: #990000;">&quot;itemRollOver(event)&quot;</span> itemRollOut=<span style="color: #990000;">&quot;itemRollOut(event)&quot;</span><span style="color: #000000; font-weight: bold;">/&amp;</span>gt;</div></td></tr></tbody></table></div>
<p>Here is the post which explains a much simpler way to create tooltips but you cannot custom place these tooltips:</p>
<p><a href="http://raghuonflex.wordpress.com/2007/09/19/tooltips-for-combobox-items-or-list-items/">http://raghuonflex.wordpress.com/2007/09/19/tooltips-for-combobox-items-or-list-items/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ravimarella.com/getriaed/2009/06/18/tooltip-custom-placement-on-flex-listbox-rollover/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
