<?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: Adding a Scrollbar to a Dynamicly Populated Menu List in ActionScript 2.0</title>
	<atom:link href="http://www.pixologyinteractive.com/2009/06/adding-a-scrollbar-to-a-dynamicly-populated-menu-list-in-actionscript-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pixologyinteractive.com/2009/06/adding-a-scrollbar-to-a-dynamicly-populated-menu-list-in-actionscript-2/</link>
	<description>//creativity from the ground up</description>
	<lastBuildDate>Thu, 24 Jun 2010 17:41:19 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Erin Pierce</title>
		<link>http://www.pixologyinteractive.com/2009/06/adding-a-scrollbar-to-a-dynamicly-populated-menu-list-in-actionscript-2/comment-page-1/#comment-24</link>
		<dc:creator>Erin Pierce</dc:creator>
		<pubDate>Mon, 08 Jun 2009 18:28:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.erinpierce.com/?p=234#comment-24</guid>
		<description>SOLUTION to height problem ... for some reason it was not passing the correct height when calculating the listHolder_mc._height. SO, i added a fourth variable to be passed through to the scrolling function. In my for loops I created a variable called listOneHeight and listTwoHeight and set it equal to the menu item height multiplied by the number of items:
&lt;blockquote&gt;&lt;span class=&quot;Unicode&quot;&gt;// inside the for loop&lt;/span&gt;
&lt;span class=&quot;Unicode&quot;&gt;navH = _root.listOneHolder.myNav._height + spacing; // var spacing set earlier to what ever distance you want between buttons&lt;/span&gt;
&lt;span class=&quot;Unicode&quot;&gt;listOnefinalH = navH * i; // actual list menu height&lt;/span&gt;
&lt;span class=&quot;Unicode&quot;&gt;// the updated scrolling function now has a finalH variable being passed through and then set the contentHeight equal to that&lt;/span&gt;
&lt;span class=&quot;Unicode&quot;&gt;var contentHeight:Number = finalH;&lt;/span&gt;

&lt;span class=&quot;Unicode&quot;&gt;// and in the second list&#039;s for loop&lt;/span&gt;
&lt;span class=&quot;Unicode&quot;&gt;btnH = _root.listTwoHolder.btn._height + spacing; // var spacing set earlier to what ever distance you want between buttons&lt;/span&gt;
&lt;span class=&quot;Unicode&quot;&gt;listTwoFinalH = btnH * i; // actual list menu height&lt;/span&gt;
&lt;span class=&quot;Unicode&quot;&gt;// the updated scrolling function now has a finalH variable being passed through and then set the contentHeight equal to that&lt;/span&gt;

&lt;span class=&quot;Unicode&quot;&gt;// inside my scrolling function&lt;/span&gt;
&lt;span class=&quot;Unicode&quot;&gt;var contentHeight:Number = finalH;&lt;/span&gt;&lt;/blockquote&gt;</description>
		<content:encoded><![CDATA[<p>SOLUTION to height problem &#8230; for some reason it was not passing the correct height when calculating the listHolder_mc._height. SO, i added a fourth variable to be passed through to the scrolling function. In my for loops I created a variable called listOneHeight and listTwoHeight and set it equal to the menu item height multiplied by the number of items:</p>
<blockquote><p><span class="Unicode">// inside the for loop</span><br />
<span class="Unicode">navH = _root.listOneHolder.myNav._height + spacing; // var spacing set earlier to what ever distance you want between buttons</span><br />
<span class="Unicode">listOnefinalH = navH * i; // actual list menu height</span><br />
<span class="Unicode">// the updated scrolling function now has a finalH variable being passed through and then set the contentHeight equal to that</span><br />
<span class="Unicode">var contentHeight:Number = finalH;</span></p>
<p><span class="Unicode">// and in the second list&#8217;s for loop</span><br />
<span class="Unicode">btnH = _root.listTwoHolder.btn._height + spacing; // var spacing set earlier to what ever distance you want between buttons</span><br />
<span class="Unicode">listTwoFinalH = btnH * i; // actual list menu height</span><br />
<span class="Unicode">// the updated scrolling function now has a finalH variable being passed through and then set the contentHeight equal to that</span></p>
<p><span class="Unicode">// inside my scrolling function</span><br />
<span class="Unicode">var contentHeight:Number = finalH;</span></p></blockquote>
]]></content:encoded>
	</item>
</channel>
</rss>
