<?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: Beware scrollRect: Seems great, can be nightmare.</title>
	<atom:link href="http://www.squidder.com/2008/05/28/beware-scrollrect-seems-great-can-be-nightmare/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.squidder.com/2008/05/28/beware-scrollrect-seems-great-can-be-nightmare/</link>
	<description>Actionscript you'll lose your ink over.</description>
	<lastBuildDate>Thu, 22 Apr 2010 05:08:04 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Onepunch</title>
		<link>http://www.squidder.com/2008/05/28/beware-scrollrect-seems-great-can-be-nightmare/comment-page-1/#comment-5243</link>
		<dc:creator>Onepunch</dc:creator>
		<pubDate>Tue, 22 Sep 2009 22:01:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.squidder.com/?p=90#comment-5243</guid>
		<description>1. Create a MovieClip and set it&#039;s scrollRect
2. Add a sprite to the movie clip
3. Add a bunch of content to the sprite
4. If the contents of the sprite change, update your scrollRect using Sprite.height
5. ????
6. Profit!

Don&#039;t be dumb.</description>
		<content:encoded><![CDATA[<p>1. Create a MovieClip and set it&#8217;s scrollRect<br />
2. Add a sprite to the movie clip<br />
3. Add a bunch of content to the sprite<br />
4. If the contents of the sprite change, update your scrollRect using Sprite.height<br />
5. ????<br />
6. Profit!</p>
<p>Don&#8217;t be dumb.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe Wheeler</title>
		<link>http://www.squidder.com/2008/05/28/beware-scrollrect-seems-great-can-be-nightmare/comment-page-1/#comment-57</link>
		<dc:creator>Joe Wheeler</dc:creator>
		<pubDate>Fri, 27 Feb 2009 22:23:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.squidder.com/?p=90#comment-57</guid>
		<description>I&#039;ve (finally) found a pretty reliable fix for the scrollrect height, width problem. http://usecake.com/lab/find-the-height-and-width-of-a-sprite-with-a-scrollrect.html

Hope this helps,
J</description>
		<content:encoded><![CDATA[<p>I&#8217;ve (finally) found a pretty reliable fix for the scrollrect height, width problem. <a href="http://usecake.com/lab/find-the-height-and-width-of-a-sprite-with-a-scrollrect.html" rel="nofollow">http://usecake.com/lab/find-the-height-and-width-of-a-sprite-with-a-scrollrect.html</a></p>
<p>Hope this helps,<br />
J</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ys</title>
		<link>http://www.squidder.com/2008/05/28/beware-scrollrect-seems-great-can-be-nightmare/comment-page-1/#comment-22</link>
		<dc:creator>ys</dc:creator>
		<pubDate>Wed, 06 Aug 2008 13:48:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.squidder.com/?p=90#comment-22</guid>
		<description>chk : &lt;a href=&quot;http://bugs.adobe.com/jira/browse/FP-177&quot; rel=&quot;nofollow&quot;&gt;http://bugs.adobe.com/jira/browse/FP-177&lt;/a&gt;
</description>
		<content:encoded><![CDATA[<p>chk : <a href="http://bugs.adobe.com/jira/browse/FP-177" rel="nofollow">http://bugs.adobe.com/jira/browse/FP-177</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Visual Asparagus</title>
		<link>http://www.squidder.com/2008/05/28/beware-scrollrect-seems-great-can-be-nightmare/comment-page-1/#comment-21</link>
		<dc:creator>Visual Asparagus</dc:creator>
		<pubDate>Tue, 15 Jul 2008 01:58:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.squidder.com/?p=90#comment-21</guid>
		<description>this also drove me up the wall!!!



after using a shadow TextField not on the display list as a sort of measuring device, i tried another trick that worked much better and will allow me to use it for a scrollPane as well.  if the TextField is in a container sprite, then the TextField instance still retains is correct height and width, even though the container sprite [ with scrollRect ] indicates another height or width.



this simple example shows what i mean.





cClip = new Sprite();

cClip.graphics.beginFill(0x000000);

cClip.graphics.drawRect(0, 0, 100, 300)

cClip.graphics.endFill();

pClip = new Sprite();

pClip.addChild(cClip);

pClip.scrollRect = new Rectangle(0, 0, 50, 200);

addChild(pClip);



Main.LOGGER.debug(pClip.height+&quot; :: &quot;+cClip.height);





good luck!
</description>
		<content:encoded><![CDATA[<p>this also drove me up the wall!!!</p>
<p>after using a shadow TextField not on the display list as a sort of measuring device, i tried another trick that worked much better and will allow me to use it for a scrollPane as well.  if the TextField is in a container sprite, then the TextField instance still retains is correct height and width, even though the container sprite [ with scrollRect ] indicates another height or width.</p>
<p>this simple example shows what i mean.</p>
<p>cClip = new Sprite();</p>
<p>cClip.graphics.beginFill(0&#215;000000);</p>
<p>cClip.graphics.drawRect(0, 0, 100, 300)</p>
<p>cClip.graphics.endFill();</p>
<p>pClip = new Sprite();</p>
<p>pClip.addChild(cClip);</p>
<p>pClip.scrollRect = new Rectangle(0, 0, 50, 200);</p>
<p>addChild(pClip);</p>
<p>Main.LOGGER.debug(pClip.height+&#8221; :: &#8220;+cClip.height);</p>
<p>good luck!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Corrin</title>
		<link>http://www.squidder.com/2008/05/28/beware-scrollrect-seems-great-can-be-nightmare/comment-page-1/#comment-20</link>
		<dc:creator>Michael Corrin</dc:creator>
		<pubDate>Mon, 02 Jun 2008 18:35:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.squidder.com/?p=90#comment-20</guid>
		<description>I have experienced the same problem.  It is driving me nuts.  I almost tossed the laptop out the ol&#039; window this morning.

If I figure out a solution before you post one, I will post again.  Good luck.
</description>
		<content:encoded><![CDATA[<p>I have experienced the same problem.  It is driving me nuts.  I almost tossed the laptop out the ol&#8217; window this morning.</p>
<p>If I figure out a solution before you post one, I will post again.  Good luck.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
