<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Flex 4 Examples</title>
	<atom:link href="http://flex4examples.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://flex4examples.wordpress.com</link>
	<description>Flex 4 examples and musings</description>
	<lastBuildDate>Thu, 26 Jan 2012 18:46:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='flex4examples.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/30ca56a9f43c5e963979f2739c813c19?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Flex 4 Examples</title>
		<link>http://flex4examples.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://flex4examples.wordpress.com/osd.xml" title="Flex 4 Examples" />
	<atom:link rel='hub' href='http://flex4examples.wordpress.com/?pushpress=hub'/>
		<item>
		<title>QTP runtime error. TypeError: Error #1006: showConnectionAttemptMessage is not a function.</title>
		<link>http://flex4examples.wordpress.com/2012/01/26/qtp-runtime-error-typeerror-error-1006-showconnectionattemptmessage-is-not-a-function/</link>
		<comments>http://flex4examples.wordpress.com/2012/01/26/qtp-runtime-error-typeerror-error-1006-showconnectionattemptmessage-is-not-a-function/#comments</comments>
		<pubDate>Thu, 26 Jan 2012 18:45:19 +0000</pubDate>
		<dc:creator>roustalski</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://flex4examples.wordpress.com/?p=460</guid>
		<description><![CDATA[If you compile an air application against the latest Flex 4.6 SDK and include the QTP and automation libraries, you will hit a wall: TypeError: Error #1006: showConnectionAttemptMessage is not a function. at mx.automation.qtp::ClientSocketHandler()[C:\work\flex\dmv_automation\projects\qtp_air\src\mx\automation\qtp\ClientSocketHandler.as:163] at mx.automation.qtp::QTPAgent/applicationCompleteHandler()[C:\work\flex\dmv_automation\projects\qtp_air\src\mx\automation\qtp\QTPAgent.as:127] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.managers::SystemManager/preloader_preloaderDoneHandler()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\SystemManager.as:2677] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.preloaders::Preloader/displayClassCompleteHandler()[E:\dev\4.y\frameworks\projects\framework\src\mx\preloaders\Preloader.as:582] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at spark.preloaders::SplashScreen/dispatchComplete()[E:\dev\4.y\frameworks\projects\mobilecomponents\src\spark\preloaders\SplashScreen.as:545] at [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flex4examples.wordpress.com&amp;blog=9214866&amp;post=460&amp;subd=flex4examples&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you compile an air application against the latest Flex 4.6 SDK and include the QTP and automation libraries, <a href="http://bugs.adobe.com/jira/browse/SDK-32090" title="Bummer" target="_blank">you will hit a wall</a>:</p>
<p>TypeError: Error #1006: showConnectionAttemptMessage is not a function.<br />
<span id="more-460"></span><br />
at mx.automation.qtp::ClientSocketHandler()[C:\work\flex\dmv_automation\projects\qtp_air\src\mx\automation\qtp\ClientSocketHandler.as:163]<br />
at mx.automation.qtp::QTPAgent/applicationCompleteHandler()[C:\work\flex\dmv_automation\projects\qtp_air\src\mx\automation\qtp\QTPAgent.as:127]<br />
at flash.events::EventDispatcher/dispatchEventFunction()<br />
at flash.events::EventDispatcher/dispatchEvent()<br />
at mx.managers::SystemManager/preloader_preloaderDoneHandler()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\SystemManager.as:2677]<br />
at flash.events::EventDispatcher/dispatchEventFunction()<br />
at flash.events::EventDispatcher/dispatchEvent()<br />
at mx.preloaders::Preloader/displayClassCompleteHandler()[E:\dev\4.y\frameworks\projects\framework\src\mx\preloaders\Preloader.as:582]<br />
at flash.events::EventDispatcher/dispatchEventFunction()<br />
at flash.events::EventDispatcher/dispatchEvent()<br />
at spark.preloaders::SplashScreen/dispatchComplete()[E:\dev\4.y\frameworks\projects\mobilecomponents\src\spark\preloaders\SplashScreen.as:545]<br />
at spark.preloaders::SplashScreen/preloader_initCompleteHandler()[E:\dev\4.y\frameworks\projects\mobilecomponents\src\spark\preloaders\SplashScreen.as:514]<br />
at flash.events::EventDispatcher/dispatchEventFunction()<br />
at flash.events::EventDispatcher/dispatchEvent()<br />
at mx.preloaders::Preloader/dispatchAppEndEvent()[E:\dev\4.y\frameworks\projects\framework\src\mx\preloaders\Preloader.as:380]<br />
at mx.preloaders::Preloader/appCreationCompleteHandler()[E:\dev\4.y\frameworks\projects\framework\src\mx\preloaders\Preloader.as:590]<br />
at flash.events::EventDispatcher/dispatchEventFunction()<br />
at flash.events::EventDispatcher/dispatchEvent()<br />
at mx.core::UIComponent/dispatchEvent()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:13152]<br />
at mx.core::UIComponent/set initialized()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:1818]<br />
at mx.managers::LayoutManager/validateClient()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1090]<br />
at mx.core::UIComponent/validateNow()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:8077]<br />
at spark.components::WindowedApplication/window_resizeHandler()[E:\dev\4.y\frameworks\projects\airspark\src\spark\components\WindowedApplication.as:2671] </p>
<p>Please <a href="http://bugs.adobe.com/jira/browse/SDK-32090" target="_blank">vote for the bug</a> to be addressed if you use automation. Is anyone else seeing this error?</p>
<p>As a workaround, we are using a pre-release version of the SDK (build 23043).</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flex4examples.wordpress.com/460/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flex4examples.wordpress.com/460/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flex4examples.wordpress.com/460/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flex4examples.wordpress.com/460/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/flex4examples.wordpress.com/460/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/flex4examples.wordpress.com/460/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/flex4examples.wordpress.com/460/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/flex4examples.wordpress.com/460/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flex4examples.wordpress.com/460/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flex4examples.wordpress.com/460/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flex4examples.wordpress.com/460/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flex4examples.wordpress.com/460/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flex4examples.wordpress.com/460/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flex4examples.wordpress.com/460/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flex4examples.wordpress.com&amp;blog=9214866&amp;post=460&amp;subd=flex4examples&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://flex4examples.wordpress.com/2012/01/26/qtp-runtime-error-typeerror-error-1006-showconnectionattemptmessage-is-not-a-function/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5894105cecce300856ded73b91b95005?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">roustalski</media:title>
		</media:content>
	</item>
		<item>
		<title>DropDownController PopupAnchor</title>
		<link>http://flex4examples.wordpress.com/2011/11/08/dropdowncontroller-popupanchor/</link>
		<comments>http://flex4examples.wordpress.com/2011/11/08/dropdowncontroller-popupanchor/#comments</comments>
		<pubDate>Tue, 08 Nov 2011 21:04:29 +0000</pubDate>
		<dc:creator>roustalski</dc:creator>
				<category><![CDATA[Flex 4 Examples]]></category>
		<category><![CDATA[close]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[custom popup]]></category>
		<category><![CDATA[DropDownList]]></category>
		<category><![CDATA[open]]></category>
		<category><![CDATA[popup]]></category>
		<category><![CDATA[PopupAnchor]]></category>

		<guid isPermaLink="false">http://flex4examples.wordpress.com/?p=448</guid>
		<description><![CDATA[Lets pretend you have a popup that you want to show when a button is clicked, as in the following example: How do you easily manage when the popup is closed in this case? Rather than having to manage opening and closing the popup when the button is clicked and the user interacts with the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flex4examples.wordpress.com&amp;blog=9214866&amp;post=448&amp;subd=flex4examples&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Lets pretend you have a popup that you want to show when a button is clicked, as in the following example:</p>
<p><pre class="brush: as3;">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;s:WindowedApplication 
	xmlns:fx=&quot;http://ns.adobe.com/mxml/2009&quot;
	xmlns:mx=&quot;library://ns.adobe.com/flex/mx&quot;
	xmlns:s=&quot;library://ns.adobe.com/flex/spark&quot;&gt;
	
	&lt;s:Button 
		label=&quot;Some Button that pops something up&quot;
		horizontalCenter=&quot;0&quot;
		verticalCenter=&quot;0&quot;
		click=&quot;popup.displayPopUp = true;&quot;/&gt;

	&lt;s:PopUpAnchor 
		id=&quot;popup&quot;
		right=&quot;0&quot;
		bottom=&quot;0&quot;&gt;
		&lt;s:Group&gt;
			&lt;s:Rect 
				width=&quot;50&quot;
				height=&quot;50&quot;&gt;
				&lt;s:fill&gt;
					&lt;s:SolidColor color=&quot;0xFF00FF&quot;/&gt;
				&lt;/s:fill&gt;
			&lt;/s:Rect&gt;
		&lt;/s:Group&gt;
	&lt;/s:PopUpAnchor&gt;

&lt;/s:WindowedApplication&gt;
</pre></p>
<p>How do you easily manage when the popup is closed in this case?<br />
<span id="more-448"></span></p>
<p>Rather than having to manage opening and closing the popup when the button is clicked and the user interacts with the application elsewhere, simply use a <code>DropDownController</code>.</p>
<p><pre class="brush: as3;">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;s:WindowedApplication 
	initialize=&quot;windowedapplication1_initializeHandler(event)&quot;
	xmlns:fx=&quot;http://ns.adobe.com/mxml/2009&quot;
	xmlns:mx=&quot;library://ns.adobe.com/flex/mx&quot;
	xmlns:s=&quot;library://ns.adobe.com/flex/spark&quot;&gt;
	&lt;fx:Script&gt;
		&lt;![CDATA[
			import mx.events.FlexEvent;

			import spark.components.supportClasses.DropDownController;
			import spark.events.DropDownEvent;

			private var _controller:DropDownController;

			protected function windowedapplication1_initializeHandler(event:FlexEvent):void
			{
				var ddc:DropDownController = new DropDownController();
				ddc.openButton = btn;
				ddc.addEventListener(DropDownEvent.OPEN, dropDownController_openHandler);
				ddc.addEventListener(DropDownEvent.CLOSE, dropDownController_closeHandler);
				_controller = ddc;
			}

			protected function dropDownController_openHandler(event:Event):void
			{
				popup.displayPopUp = true;
			}

			protected function dropDownController_closeHandler(event:Event):void
			{
				popup.displayPopUp = false;
			}

			protected function button1_clickHandler(event:MouseEvent):void
			{
				//Manually close the dropdown if you wish
				_controller.closeDropDown(true);
			}
		]]&gt;
	&lt;/fx:Script&gt;

	&lt;s:Label 
		left=&quot;15&quot;
		top=&quot;15&quot;
		text=&quot;Try clicking here when the popup is shown.&quot;/&gt;

	&lt;s:Button 
		id=&quot;btn&quot;
		label=&quot;Some Button that pops something up&quot;
		horizontalCenter=&quot;0&quot;
		verticalCenter=&quot;0&quot;/&gt;

	&lt;s:PopUpAnchor 
		id=&quot;popup&quot;
		right=&quot;0&quot;
		bottom=&quot;0&quot;&gt;
		&lt;s:Group&gt;
			&lt;s:Rect 
				width=&quot;100&quot;
				height=&quot;100&quot;&gt;
				&lt;s:fill&gt;
					&lt;s:SolidColor color=&quot;0xFF00FF&quot;/&gt;
				&lt;/s:fill&gt;
			&lt;/s:Rect&gt;
			&lt;s:Button 
				label=&quot;close&quot;
				horizontalCenter=&quot;0&quot;
				verticalCenter=&quot;0&quot;
				click=&quot;button1_clickHandler(event)&quot;/&gt;
		&lt;/s:Group&gt;
	&lt;/s:PopUpAnchor&gt;

&lt;/s:WindowedApplication&gt;
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flex4examples.wordpress.com/448/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flex4examples.wordpress.com/448/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flex4examples.wordpress.com/448/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flex4examples.wordpress.com/448/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/flex4examples.wordpress.com/448/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/flex4examples.wordpress.com/448/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/flex4examples.wordpress.com/448/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/flex4examples.wordpress.com/448/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flex4examples.wordpress.com/448/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flex4examples.wordpress.com/448/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flex4examples.wordpress.com/448/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flex4examples.wordpress.com/448/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flex4examples.wordpress.com/448/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flex4examples.wordpress.com/448/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flex4examples.wordpress.com&amp;blog=9214866&amp;post=448&amp;subd=flex4examples&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://flex4examples.wordpress.com/2011/11/08/dropdowncontroller-popupanchor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5894105cecce300856ded73b91b95005?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">roustalski</media:title>
		</media:content>
	</item>
		<item>
		<title>Garbage Collection Strategy Reiterated</title>
		<link>http://flex4examples.wordpress.com/2011/11/07/garbage-collection-strategy-reiterated/</link>
		<comments>http://flex4examples.wordpress.com/2011/11/07/garbage-collection-strategy-reiterated/#comments</comments>
		<pubDate>Mon, 07 Nov 2011 14:52:36 +0000</pubDate>
		<dc:creator>roustalski</dc:creator>
				<category><![CDATA[Flashbuilder]]></category>
		<category><![CDATA[Flex 4 Examples]]></category>
		<category><![CDATA[collection]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[flashplayer]]></category>
		<category><![CDATA[garbage]]></category>
		<category><![CDATA[garbage collection]]></category>
		<category><![CDATA[mark]]></category>
		<category><![CDATA[mark and sweep]]></category>
		<category><![CDATA[reference count]]></category>
		<category><![CDATA[sweep]]></category>

		<guid isPermaLink="false">http://flex4examples.wordpress.com/?p=435</guid>
		<description><![CDATA[A new article was recently published on adobe&#8217;s devnet providing another recap of how memory is managed by Flash. I wanted to reiterate the importance of diligently clearing the stack memory of references to the heap memory in order to minimize the work of the collector in the Mark and Sweep phase. You, as the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flex4examples.wordpress.com&amp;blog=9214866&amp;post=435&amp;subd=flex4examples&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A new article was recently <a href="http://www.adobe.com/devnet/actionscript/learning/as3-fundamentals/garbage-collection.html" target="_blank">published on adobe&#8217;s devnet</a> providing another recap of how memory is managed by Flash. I wanted to reiterate the importance of diligently clearing the stack memory of references to the heap memory in order to <a href="http://flex4examples.wordpress.com/2009/09/03/so-you-have-memory-problems-in-your-flex-application/" target="_blank">minimize the work of the collector</a> in the Mark and Sweep phase.</p>
<p>You, as the developer, can optimize your code by helping the Mark and Sweep phases of garbage collection occur less often. By keeping your stack references <a href="http://flex4examples.wordpress.com/2010/03/07/objectdictionary-reference-counting-and-memory-management/" target="_blank">cleared of objects</a> on the heap, the zero count table algorithm can clean up the memory before mark and sweep has to occur.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flex4examples.wordpress.com/435/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flex4examples.wordpress.com/435/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flex4examples.wordpress.com/435/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flex4examples.wordpress.com/435/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/flex4examples.wordpress.com/435/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/flex4examples.wordpress.com/435/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/flex4examples.wordpress.com/435/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/flex4examples.wordpress.com/435/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flex4examples.wordpress.com/435/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flex4examples.wordpress.com/435/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flex4examples.wordpress.com/435/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flex4examples.wordpress.com/435/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flex4examples.wordpress.com/435/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flex4examples.wordpress.com/435/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flex4examples.wordpress.com&amp;blog=9214866&amp;post=435&amp;subd=flex4examples&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://flex4examples.wordpress.com/2011/11/07/garbage-collection-strategy-reiterated/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5894105cecce300856ded73b91b95005?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">roustalski</media:title>
		</media:content>
	</item>
		<item>
		<title>Getter &amp; Setter accessors with different namespaces</title>
		<link>http://flex4examples.wordpress.com/2011/10/21/getter-setter-accessors-with-different-namespaces/</link>
		<comments>http://flex4examples.wordpress.com/2011/10/21/getter-setter-accessors-with-different-namespaces/#comments</comments>
		<pubDate>Fri, 21 Oct 2011 13:31:24 +0000</pubDate>
		<dc:creator>roustalski</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://flex4examples.wordpress.com/?p=429</guid>
		<description><![CDATA[Although the bug is still open, you are able to create a getter/setter combo for a property with different namespaces. Sweet! You will get a compile error when trying to write to the read only property, and you will get a runtime error if you try bracket notation on the object to set the property.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flex4examples.wordpress.com&amp;blog=9214866&amp;post=429&amp;subd=flex4examples&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Although the <a href="https://bugs.adobe.com/jira/browse/ASL-112" target="_blank">bug is still open</a>, you are able to create a getter/setter combo for a property with different namespaces. Sweet!</p>
<p>You will get a compile error when trying to write to the read only property, and you will get a runtime error if you try bracket notation on the object to set the property.</p>
<p><pre class="brush: as3;">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;s:WindowedApplication 
	xmlns:fx=&quot;http://ns.adobe.com/mxml/2009&quot;
	xmlns:mx=&quot;library://ns.adobe.com/flex/mx&quot;
	xmlns:s=&quot;library://ns.adobe.com/flex/spark&quot;&gt;

	&lt;fx:Script&gt;
		&lt;![CDATA[
			import mx.events.FlexEvent;

			private var _myVar:Boolean;

			public function get myVar():Boolean
			{
				return _myVar;
			}

			//Private/Protected/Internal/etc...
			private function set myVar(value:Boolean):void
			{
				_myVar = value;
			}
		]]&gt;
	&lt;/fx:Script&gt;
&lt;/s:WindowedApplication&gt;

</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flex4examples.wordpress.com/429/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flex4examples.wordpress.com/429/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flex4examples.wordpress.com/429/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flex4examples.wordpress.com/429/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/flex4examples.wordpress.com/429/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/flex4examples.wordpress.com/429/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/flex4examples.wordpress.com/429/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/flex4examples.wordpress.com/429/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flex4examples.wordpress.com/429/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flex4examples.wordpress.com/429/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flex4examples.wordpress.com/429/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flex4examples.wordpress.com/429/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flex4examples.wordpress.com/429/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flex4examples.wordpress.com/429/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flex4examples.wordpress.com&amp;blog=9214866&amp;post=429&amp;subd=flex4examples&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://flex4examples.wordpress.com/2011/10/21/getter-setter-accessors-with-different-namespaces/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5894105cecce300856ded73b91b95005?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">roustalski</media:title>
		</media:content>
	</item>
		<item>
		<title>ButtonBar radio logic hack</title>
		<link>http://flex4examples.wordpress.com/2011/09/30/buttonbar-radio-logic-hack/</link>
		<comments>http://flex4examples.wordpress.com/2011/09/30/buttonbar-radio-logic-hack/#comments</comments>
		<pubDate>Fri, 30 Sep 2011 20:04:49 +0000</pubDate>
		<dc:creator>roustalski</dc:creator>
				<category><![CDATA[Flex 4 Examples]]></category>
		<category><![CDATA[Flex Gotchas]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ButtonBar]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[selected]]></category>

		<guid isPermaLink="false">http://flex4examples.wordpress.com/?p=418</guid>
		<description><![CDATA[Update: Set the requireSelection property to true. When the button bar is used as a navigation tool for a set of tabs, it doesn&#8217;t make sense for the selected button to be unselected if the user clicks on it. It is also fairly typical for a result handler of the IndexChangeEvent.CHANGED to utilize the button [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flex4examples.wordpress.com&amp;blog=9214866&amp;post=418&amp;subd=flex4examples&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Update: Set the requireSelection property to true.</p>
<p>When the button bar is used as a navigation tool for a set of tabs, it doesn&#8217;t make sense for the selected button to be unselected if the user clicks on it.</p>
<p>It is also fairly typical for a result handler of the IndexChangeEvent.CHANGED to utilize the button bar&#8217;s selectedItem property to access a piece of data. This causes runtime errors when the selected item is no longer selected because of a re-click on the selected button.</p>
<p><span id="more-418"></span></p>
<p>Lets Look at a simple example:</p>
<p><pre class="brush: as3; highlight: [13];">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;s:WindowedApplication 
	xmlns:fx=&quot;http://ns.adobe.com/mxml/2009&quot;
	xmlns:mx=&quot;library://ns.adobe.com/flex/mx&quot;
	xmlns:s=&quot;library://ns.adobe.com/flex/spark&quot;&gt;
	&lt;fx:Script&gt;
		&lt;![CDATA[
			import spark.events.IndexChangeEvent;

			protected function buttonbar1_changeHandler(event:IndexChangeEvent):void
			{
				//Throws an error
				bb.selectedItem.label;
			}
		]]&gt;
	&lt;/fx:Script&gt;
	&lt;s:ButtonBar 
		id=&quot;bb&quot;
		selectedIndex=&quot;0&quot;
		change=&quot;buttonbar1_changeHandler(event)&quot;&gt;
		&lt;s:dataProvider&gt;
			&lt;s:ArrayCollection&gt;
				&lt;fx:Object label=&quot;1&quot;/&gt;
				&lt;fx:Object label=&quot;2&quot;/&gt;
				&lt;fx:Object label=&quot;3&quot;/&gt;
			&lt;/s:ArrayCollection&gt;
		&lt;/s:dataProvider&gt;
	&lt;/s:ButtonBar&gt;
&lt;/s:WindowedApplication&gt;
</pre></p>
<p>Lets say you have that type of situation all over your code and you are afraid some handlers might slip through the cracks, so you decide to override the ButtonBar to prevent the change event from occuring when the selected button is clicked. Something like this.</p>
<p><pre class="brush: as3; highlight: [16,17,18,19,20,27];">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;s:WindowedApplication 
	xmlns:fx=&quot;http://ns.adobe.com/mxml/2009&quot;
	xmlns:mx=&quot;library://ns.adobe.com/flex/mx&quot;
	xmlns:s=&quot;library://ns.adobe.com/flex/spark&quot;&gt;
	&lt;fx:Script&gt;
		&lt;![CDATA[
			import spark.events.IndexChangeEvent;

			protected function buttonbar1_changeHandler(event:IndexChangeEvent):void
			{
				//Throw an error
				bb.selectedItem.label;
			}

			protected function bb_changingHandler(event:IndexChangeEvent):void
			{
				//Prevent the error from being thrown
				event.preventDefault();
			}
		]]&gt;
	&lt;/fx:Script&gt;
	&lt;s:ButtonBar 
		id=&quot;bb&quot;
		selectedIndex=&quot;0&quot;
		change=&quot;buttonbar1_changeHandler(event)&quot;
		changing=&quot;bb_changingHandler(event)&quot;&gt;
		&lt;s:dataProvider&gt;
			&lt;s:ArrayCollection&gt;
				&lt;fx:Object label=&quot;1&quot;/&gt;
				&lt;fx:Object label=&quot;2&quot;/&gt;
				&lt;fx:Object label=&quot;3&quot;/&gt;
			&lt;/s:ArrayCollection&gt;
		&lt;/s:dataProvider&gt;
	&lt;/s:ButtonBar&gt;
&lt;/s:WindowedApplication&gt;
</pre></p>
<p>All is well, right? Nope! Visually the button is no longer selected. Sadly, the only fix that I could come up with after trying loads of things including listening and hijacking other events and overriding protected and mx_internal events was the following.</p>
<p><pre class="brush: as3; highlight: [23,24,25,26,27,28,29,30,31];">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;s:WindowedApplication 
	xmlns:fx=&quot;http://ns.adobe.com/mxml/2009&quot;
	xmlns:mx=&quot;library://ns.adobe.com/flex/mx&quot;
	xmlns:s=&quot;library://ns.adobe.com/flex/spark&quot;&gt;
	&lt;fx:Script&gt;
		&lt;![CDATA[
			import spark.events.IndexChangeEvent;

			protected function buttonbar1_changeHandler(event:IndexChangeEvent):void
			{
				//Throw an error
				bb.selectedItem.label;
			}

			protected function bb_changingHandler(event:IndexChangeEvent):void
			{
				//Prevent the error from being thrown
				event.preventDefault();

				//But, the button is still de-selected, even though prevent default is
				//supposed to cancel the commit of the new selection??
				try
				{
					var blah:* = bb.dataGroup.getElementAt(event.oldIndex);
					blah.selected = true;
				}
				catch (e:Error)
				{

				}
			}
		]]&gt;
	&lt;/fx:Script&gt;
	&lt;s:ButtonBar 
		id=&quot;bb&quot;
		selectedIndex=&quot;0&quot;
		change=&quot;buttonbar1_changeHandler(event)&quot;
		changing=&quot;bb_changingHandler(event)&quot;&gt;
		&lt;s:dataProvider&gt;
			&lt;s:ArrayCollection&gt;
				&lt;fx:Object label=&quot;1&quot;/&gt;
				&lt;fx:Object label=&quot;2&quot;/&gt;
				&lt;fx:Object label=&quot;3&quot;/&gt;
			&lt;/s:ArrayCollection&gt;
		&lt;/s:dataProvider&gt;
	&lt;/s:ButtonBar&gt;
&lt;/s:WindowedApplication&gt;
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flex4examples.wordpress.com/418/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flex4examples.wordpress.com/418/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flex4examples.wordpress.com/418/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flex4examples.wordpress.com/418/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/flex4examples.wordpress.com/418/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/flex4examples.wordpress.com/418/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/flex4examples.wordpress.com/418/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/flex4examples.wordpress.com/418/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flex4examples.wordpress.com/418/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flex4examples.wordpress.com/418/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flex4examples.wordpress.com/418/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flex4examples.wordpress.com/418/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flex4examples.wordpress.com/418/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flex4examples.wordpress.com/418/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flex4examples.wordpress.com&amp;blog=9214866&amp;post=418&amp;subd=flex4examples&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://flex4examples.wordpress.com/2011/09/30/buttonbar-radio-logic-hack/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5894105cecce300856ded73b91b95005?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">roustalski</media:title>
		</media:content>
	</item>
		<item>
		<title>Workspace in use or Cannot be Created</title>
		<link>http://flex4examples.wordpress.com/2011/09/23/workspace-in-use-or-cannot-be-created/</link>
		<comments>http://flex4examples.wordpress.com/2011/09/23/workspace-in-use-or-cannot-be-created/#comments</comments>
		<pubDate>Fri, 23 Sep 2011 13:22:09 +0000</pubDate>
		<dc:creator>roustalski</dc:creator>
				<category><![CDATA[Flashbuilder]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[Flasbhuilder]]></category>
		<category><![CDATA[workspace]]></category>
		<category><![CDATA[Workspace error]]></category>

		<guid isPermaLink="false">http://flex4examples.wordpress.com/?p=414</guid>
		<description><![CDATA[If you close FlashBuilder and it doesn&#8217;t shut down correctly, sometimes a .lock file will be left in the .metadata directory of your workspace. If you try and restart FB with the .lock file present, you will get an error message about the workspace being in use. Either make sure the java program is killed [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flex4examples.wordpress.com&amp;blog=9214866&amp;post=414&amp;subd=flex4examples&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you close FlashBuilder and it doesn&#8217;t shut down correctly, sometimes a .lock file will be left in the .metadata directory of your workspace.</p>
<p>If you try and restart FB with the .lock file present, you will get an error message about the workspace being in use. Either make sure the java program is killed or remove the lock file manually in order to reload FB.</p>
<p>This seems to happen to me every time I shut down with the latest version ]:</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flex4examples.wordpress.com/414/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flex4examples.wordpress.com/414/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flex4examples.wordpress.com/414/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flex4examples.wordpress.com/414/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/flex4examples.wordpress.com/414/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/flex4examples.wordpress.com/414/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/flex4examples.wordpress.com/414/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/flex4examples.wordpress.com/414/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flex4examples.wordpress.com/414/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flex4examples.wordpress.com/414/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flex4examples.wordpress.com/414/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flex4examples.wordpress.com/414/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flex4examples.wordpress.com/414/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flex4examples.wordpress.com/414/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flex4examples.wordpress.com&amp;blog=9214866&amp;post=414&amp;subd=flex4examples&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://flex4examples.wordpress.com/2011/09/23/workspace-in-use-or-cannot-be-created/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5894105cecce300856ded73b91b95005?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">roustalski</media:title>
		</media:content>
	</item>
		<item>
		<title>mx Vertical Scroll Position</title>
		<link>http://flex4examples.wordpress.com/2011/06/14/mx-vertical-scroll-position/</link>
		<comments>http://flex4examples.wordpress.com/2011/06/14/mx-vertical-scroll-position/#comments</comments>
		<pubDate>Tue, 14 Jun 2011 12:39:44 +0000</pubDate>
		<dc:creator>roustalski</dc:creator>
				<category><![CDATA[mx Examples]]></category>
		<category><![CDATA[DataGrid]]></category>
		<category><![CDATA[flex 3]]></category>
		<category><![CDATA[mx]]></category>
		<category><![CDATA[vertical scroll position]]></category>

		<guid isPermaLink="false">http://flex4examples.wordpress.com/?p=394</guid>
		<description><![CDATA[In regards to my post about maintaining vertical scroll position, James asked how the same would be done for mx based components. Here is an example using an mx:DataGrid. Here is an example of the problem: This is one way to solve the lost scroll position.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flex4examples.wordpress.com&amp;blog=9214866&amp;post=394&amp;subd=flex4examples&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In regards to <a href="http://flex4examples.wordpress.com/2010/06/18/flex-4-list-remembering-verticalscrollposition/" target="_blank">my post</a> about maintaining vertical scroll position, James <a href="http://flex4examples.wordpress.com/2010/06/18/flex-4-list-remembering-verticalscrollposition/#comment-44" target="_blank">asked</a> how the same would be done for mx based components. Here is an example using an mx:DataGrid.</p>
<p><span id="more-394"></span></p>
<p>Here is an example of the problem:<br />
<pre class="brush: as3;">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;mx:Application xmlns:mx=&quot;http://www.adobe.com/2006/mxml&quot; layout=&quot;absolute&quot; creationComplete=&quot;onCreationComplete(event);&quot;&gt;
	&lt;mx:Script&gt;
		&lt;![CDATA[
			import mx.events.FlexEvent;
			
			private function onCreationComplete(event:FlexEvent):void
			{
				var t:Timer = new Timer(5000);
				t.addEventListener(TimerEvent.TIMER, onTimer);
				t.start();
			}
			
			private function onTimer(e:TimerEvent):void
			{
				_position = dg.verticalScrollPosition;
				
				var dp:Array = [{label: &quot;1&quot;}, {label: &quot;4&quot;},
								{label: &quot;7&quot;}, {label: &quot;10&quot;},
								{label: &quot;13&quot;}, {label: &quot;2&quot;},
								{label: &quot;5&quot;}, {label: &quot;8&quot;},
								{label: &quot;11&quot;}, {label: &quot;14&quot;},
								{label: &quot;3&quot;}, {label: &quot;6&quot;},
								{label: &quot;9&quot;}, {label: &quot;12&quot;},
								{label: &quot;15&quot;}];
								
				dg.dataProvider = dp;
			}
		]]&gt;
	&lt;/mx:Script&gt;
	&lt;mx:DataGrid id=&quot;dg&quot;/&gt;
&lt;/mx:Application&gt;

</pre></p>
<p>This is one way to solve the lost scroll position.<br />
<pre class="brush: as3; highlight: [18,32,33,34,35,38];">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;mx:Application xmlns:mx=&quot;http://www.adobe.com/2006/mxml&quot; layout=&quot;absolute&quot; creationComplete=&quot;onCreationComplete(event);&quot;&gt;
	&lt;mx:Script&gt;
		&lt;![CDATA[
			import mx.events.FlexEvent;
			
			private var _position:int;
			
			private function onCreationComplete(event:FlexEvent):void
			{
				var t:Timer = new Timer(5000);
				t.addEventListener(TimerEvent.TIMER, onTimer);
				t.start();
			}
			
			private function onTimer(e:TimerEvent):void
			{
				_position = dg.verticalScrollPosition;
				
				var dp:Array = [{label: &quot;1&quot;}, {label: &quot;4&quot;},
								{label: &quot;7&quot;}, {label: &quot;10&quot;},
								{label: &quot;13&quot;}, {label: &quot;2&quot;},
								{label: &quot;5&quot;}, {label: &quot;8&quot;},
								{label: &quot;11&quot;}, {label: &quot;14&quot;},
								{label: &quot;3&quot;}, {label: &quot;6&quot;},
								{label: &quot;9&quot;}, {label: &quot;12&quot;},
								{label: &quot;15&quot;}];
								
				dg.dataProvider = dp;
			}
			
			private function onDgUpdateComplete(e:FlexEvent):void
			{
				dg.verticalScrollPosition = _position;
			}
		]]&gt;
	&lt;/mx:Script&gt;
	&lt;mx:DataGrid id=&quot;dg&quot; updateComplete=&quot;onDgUpdateComplete(event);&quot;/&gt;
&lt;/mx:Application&gt;
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flex4examples.wordpress.com/394/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flex4examples.wordpress.com/394/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flex4examples.wordpress.com/394/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flex4examples.wordpress.com/394/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/flex4examples.wordpress.com/394/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/flex4examples.wordpress.com/394/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/flex4examples.wordpress.com/394/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/flex4examples.wordpress.com/394/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flex4examples.wordpress.com/394/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flex4examples.wordpress.com/394/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flex4examples.wordpress.com/394/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flex4examples.wordpress.com/394/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flex4examples.wordpress.com/394/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flex4examples.wordpress.com/394/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flex4examples.wordpress.com&amp;blog=9214866&amp;post=394&amp;subd=flex4examples&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://flex4examples.wordpress.com/2011/06/14/mx-vertical-scroll-position/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5894105cecce300856ded73b91b95005?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">roustalski</media:title>
		</media:content>
	</item>
		<item>
		<title>Flex 4 &lt;s:Rect/&gt; height limit of 10,000?</title>
		<link>http://flex4examples.wordpress.com/2011/06/08/flex-4-srect-height-limit-of-10000/</link>
		<comments>http://flex4examples.wordpress.com/2011/06/08/flex-4-srect-height-limit-of-10000/#comments</comments>
		<pubDate>Wed, 08 Jun 2011 13:30:43 +0000</pubDate>
		<dc:creator>roustalski</dc:creator>
				<category><![CDATA[Flex 4 Examples]]></category>
		<category><![CDATA[Flex Gotchas]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Flex 4]]></category>
		<category><![CDATA[limit]]></category>
		<category><![CDATA[maxHeight]]></category>
		<category><![CDATA[rect]]></category>
		<category><![CDATA[truncated]]></category>
		<category><![CDATA[UIComponent]]></category>

		<guid isPermaLink="false">http://flex4examples.wordpress.com/?p=386</guid>
		<description><![CDATA[In my post about vertical scroll speed I show a code example of a scroller with several nested groups. A typical design of websites these days is to have a content area in the middle with an ever-expanding height and some sort of repeating background or colors on the sides &#8211; Just look at the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flex4examples.wordpress.com&amp;blog=9214866&amp;post=386&amp;subd=flex4examples&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In my post <a href="http://flex4examples.wordpress.com/2011/05/18/flex-4-vertical-scroll-speed/">about vertical scroll speed</a> I show a code example of a scroller with several nested groups. A typical design of websites these days is to have a content area in the middle with an ever-expanding height and some sort of repeating background or colors on the sides &#8211; Just look at the layout of the majority of blogs, including my own.</p>
<p>Writing a flex app with the same design where you can scroll a lot of content vertically with a solid background color is a pretty typical use-case, but you will quickly find a limitation with using the primitive class Rect as a background: maxHeight = 10,000.</p>
<p><span id="more-386"></span></p>
<p>I&#8217;ve slightly modified my example from the vertical scroll speed post to demonstrate the layout I&#8217;m talking about:<br />
<pre class="brush: as3;">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;s:Application xmlns:fx=&quot;http://ns.adobe.com/mxml/2009&quot;
			   xmlns:s=&quot;library://ns.adobe.com/flex/spark&quot;
			   xmlns:mx=&quot;library://ns.adobe.com/flex/mx&quot;
			   width=&quot;100%&quot; height=&quot;100%&quot;&gt;
	
	&lt;s:Scroller left=&quot;0&quot; right=&quot;0&quot; top=&quot;0&quot; bottom=&quot;0&quot;&gt;
		&lt;s:Group left=&quot;0&quot; right=&quot;0&quot; top=&quot;0&quot; bottom=&quot;0&quot; horizontalCenter=&quot;0&quot;&gt;
			&lt;s:Group id=&quot;grp&quot; left=&quot;300&quot; right=&quot;300&quot; top=&quot;0&quot; bottom=&quot;0&quot; horizontalCenter=&quot;0&quot;&gt;
				&lt;s:Rect left=&quot;0&quot; right=&quot;0&quot; top=&quot;0&quot; bottom=&quot;0&quot; id=&quot;rect&quot;&gt;
					&lt;s:fill&gt;
						&lt;s:SolidColor color=&quot;0xFF00FF&quot; alpha=&quot;.4&quot;/&gt;
					&lt;/s:fill&gt;
				&lt;/s:Rect&gt;
				&lt;s:VGroup left=&quot;0&quot; right=&quot;0&quot; top=&quot;0&quot; bottom=&quot;0&quot; horizontalAlign=&quot;center&quot; paddingBottom=&quot;100&quot; paddingLeft=&quot;100&quot; paddingRight=&quot;100&quot; paddingTop=&quot;100&quot;&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
					&lt;!-- ... More ... A lot more ... --&gt;
				&lt;/s:VGroup&gt;
			&lt;/s:Group&gt;
		&lt;/s:Group&gt;
	&lt;/s:Scroller&gt;
	&lt;s:Label text=&quot;Pixel area: {rect.width * rect.height}&quot;/&gt;
&lt;/s:Application&gt;
</pre></p>
<p>Run that application with more labels until the Rect is truncated. In case you were wondering, <a href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/core/UIComponent.html#maxHeight">UIComponent sets maxHeight for you to 10,000 by default</a>.</p>
<p>An easy fix is highlighted below:</p>
<p><pre class="brush: as3; highlight: [10];">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;s:Application xmlns:fx=&quot;http://ns.adobe.com/mxml/2009&quot;
			   xmlns:s=&quot;library://ns.adobe.com/flex/spark&quot;
			   xmlns:mx=&quot;library://ns.adobe.com/flex/mx&quot;
			   width=&quot;100%&quot; height=&quot;100%&quot;&gt;
	
	&lt;s:Scroller left=&quot;0&quot; right=&quot;0&quot; top=&quot;0&quot; bottom=&quot;0&quot;&gt;
		&lt;s:Group left=&quot;0&quot; right=&quot;0&quot; top=&quot;0&quot; bottom=&quot;0&quot; horizontalCenter=&quot;0&quot;&gt;
			&lt;s:Group id=&quot;grp&quot; left=&quot;300&quot; right=&quot;300&quot; top=&quot;0&quot; bottom=&quot;0&quot; horizontalCenter=&quot;0&quot;&gt;
				&lt;s:Rect left=&quot;0&quot; right=&quot;0&quot; top=&quot;0&quot; bottom=&quot;0&quot; id=&quot;rect&quot; maxHeight={Infinity}&gt;
					&lt;s:fill&gt;
						&lt;s:SolidColor color=&quot;0xFF00FF&quot; alpha=&quot;.4&quot;/&gt;
					&lt;/s:fill&gt;
				&lt;/s:Rect&gt;
				&lt;s:VGroup left=&quot;0&quot; right=&quot;0&quot; top=&quot;0&quot; bottom=&quot;0&quot; horizontalAlign=&quot;center&quot; paddingBottom=&quot;100&quot; paddingLeft=&quot;100&quot; paddingRight=&quot;100&quot; paddingTop=&quot;100&quot;&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
					&lt;!-- .... More ... A lot more ... --&gt;
				&lt;/s:VGroup&gt;
			&lt;/s:Group&gt;
		&lt;/s:Group&gt;
	&lt;/s:Scroller&gt;
	&lt;s:Label text=&quot;Pixel area: {rect.width * rect.height}&quot;/&gt;
&lt;/s:Application&gt;
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flex4examples.wordpress.com/386/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flex4examples.wordpress.com/386/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flex4examples.wordpress.com/386/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flex4examples.wordpress.com/386/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/flex4examples.wordpress.com/386/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/flex4examples.wordpress.com/386/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/flex4examples.wordpress.com/386/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/flex4examples.wordpress.com/386/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flex4examples.wordpress.com/386/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flex4examples.wordpress.com/386/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flex4examples.wordpress.com/386/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flex4examples.wordpress.com/386/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flex4examples.wordpress.com/386/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flex4examples.wordpress.com/386/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flex4examples.wordpress.com&amp;blog=9214866&amp;post=386&amp;subd=flex4examples&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://flex4examples.wordpress.com/2011/06/08/flex-4-srect-height-limit-of-10000/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5894105cecce300856ded73b91b95005?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">roustalski</media:title>
		</media:content>
	</item>
		<item>
		<title>Simple TLF Text Editor</title>
		<link>http://flex4examples.wordpress.com/2011/05/27/simple-tlf-text-editor/</link>
		<comments>http://flex4examples.wordpress.com/2011/05/27/simple-tlf-text-editor/#comments</comments>
		<pubDate>Fri, 27 May 2011 18:58:07 +0000</pubDate>
		<dc:creator>roustalski</dc:creator>
				<category><![CDATA[Flex 4 Examples]]></category>
		<category><![CDATA[editor]]></category>
		<category><![CDATA[Flex 4]]></category>
		<category><![CDATA[rich text editor]]></category>
		<category><![CDATA[TFL]]></category>

		<guid isPermaLink="false">http://flex4examples.wordpress.com/?p=382</guid>
		<description><![CDATA[I found a great TLF editor that is simple and to the point, it is under the MIT license, and is of course open source. I don&#8217;t remember the combination of search terms to find it, but I&#8217;ve looked for something like this before and was unable to find it despite it being written in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flex4examples.wordpress.com&amp;blog=9214866&amp;post=382&amp;subd=flex4examples&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I <a href="http://asciiworks.net/2010/08/simple-tlf-text-editor-released/" target="_blank">found a great TLF editor</a> that is simple and to the point, it is under the MIT license, and is of course <a href="http://code.google.com/p/tlftexteditor/" target="_blank">open source</a>.</p>
<p>I don&#8217;t remember the combination of search terms to find it, but I&#8217;ve looked for something like this before and was unable to find it despite it being written in Q3 last year. The other examples that I&#8217;ve seen are way too heavy or are just plain bad.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flex4examples.wordpress.com/382/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flex4examples.wordpress.com/382/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flex4examples.wordpress.com/382/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flex4examples.wordpress.com/382/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/flex4examples.wordpress.com/382/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/flex4examples.wordpress.com/382/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/flex4examples.wordpress.com/382/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/flex4examples.wordpress.com/382/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flex4examples.wordpress.com/382/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flex4examples.wordpress.com/382/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flex4examples.wordpress.com/382/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flex4examples.wordpress.com/382/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flex4examples.wordpress.com/382/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flex4examples.wordpress.com/382/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flex4examples.wordpress.com&amp;blog=9214866&amp;post=382&amp;subd=flex4examples&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://flex4examples.wordpress.com/2011/05/27/simple-tlf-text-editor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5894105cecce300856ded73b91b95005?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">roustalski</media:title>
		</media:content>
	</item>
		<item>
		<title>Flex 4 Vertical Scroll Speed</title>
		<link>http://flex4examples.wordpress.com/2011/05/18/flex-4-vertical-scroll-speed/</link>
		<comments>http://flex4examples.wordpress.com/2011/05/18/flex-4-vertical-scroll-speed/#comments</comments>
		<pubDate>Wed, 18 May 2011 18:40:36 +0000</pubDate>
		<dc:creator>roustalski</dc:creator>
				<category><![CDATA[Flex 4 Examples]]></category>

		<guid isPermaLink="false">http://flex4examples.wordpress.com/?p=373</guid>
		<description><![CDATA[By default, scrolling content when using the Scroller component occurs very slowly &#8211; Even down to 1px per event. Try running the following example: In order to bring scrollable content using a Scroller up to normal web standards (say 50px or 100px per event) with a setup like the above, you have to override the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flex4examples.wordpress.com&amp;blog=9214866&amp;post=373&amp;subd=flex4examples&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>By default, scrolling content when using the Scroller component occurs very slowly &#8211; Even down to 1px per event.</p>
<p>Try running the following example:</p>
<p><pre class="brush: as3;">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;s:Application xmlns:fx=&quot;http://ns.adobe.com/mxml/2009&quot; 
			   xmlns:s=&quot;library://ns.adobe.com/flex/spark&quot; 
			   xmlns:mx=&quot;library://ns.adobe.com/flex/mx&quot; minWidth=&quot;955&quot; minHeight=&quot;600&quot;&gt;
	&lt;s:Scroller width=&quot;100%&quot; height=&quot;100%&quot;&gt;
		&lt;s:Group width=&quot;100%&quot; height=&quot;100%&quot;&gt;
			&lt;s:Group width=&quot;100%&quot; height=&quot;100%&quot;&gt;
				&lt;s:VGroup width=&quot;100%&quot; height=&quot;100%&quot; horizontalAlign=&quot;center&quot;&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
				&lt;/s:VGroup&gt;
				&lt;s:layout&gt;
					&lt;s:VerticalLayout paddingBottom=&quot;100&quot; paddingLeft=&quot;100&quot; paddingRight=&quot;100&quot; paddingTop=&quot;100&quot;/&gt;
				&lt;/s:layout&gt;
			&lt;/s:Group&gt;
		&lt;/s:Group&gt;
	&lt;/s:Scroller&gt;
&lt;/s:Application&gt;
</pre></p>
<p>In order to bring scrollable content using a Scroller up to normal web standards (say 50px or 100px per event) with a setup like the above, you have to override the VScrollbar and assign a custom skin to the scroller that uses the override.</p>
<p><span id="more-373"></span></p>
<p>The overridden vertical scrollbar:<br />
<pre class="brush: as3;">
package
{
    import flash.events.MouseEvent;
    
    import mx.core.mx_internal;
    
    import spark.components.VScrollBar;
    import spark.core.IViewport;
    
    use namespace mx_internal;
    
	[Style(name=&quot;movementDelta&quot;, inherit=&quot;yes&quot;, type=&quot;number&quot;, format=&quot;length&quot;)]
    public class VScrollBar extends spark.components.VScrollBar
    {
		public function VScrollBar()
		{
			setStyle(&quot;movementDelta&quot;, 50);
		}
		
        override mx_internal function mouseWheelHandler(event:MouseEvent):void
        {
			var viewport:IViewport = this.viewport;
            if ( viewport == null || !viewport.visible || event.isDefaultPrevented() )
                return;
            
			var delta:Number = event.delta;
			var direction:int = (event.delta &gt; 0) ? -1 : (event.delta &lt; 0) ? 1 : 0;
            var movement:Number = getStyle(&quot;movementDelta&quot;);
			viewport.verticalScrollPosition += movement * direction;
            event.preventDefault();
        }

    }
}
</pre></p>
<p>The Skin Class:<br />
<pre class="brush: as3;">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;s:SparkSkin xmlns:fx=&quot;http://ns.adobe.com/mxml/2009&quot; xmlns:s=&quot;library://ns.adobe.com/flex/spark&quot; &gt;

    &lt;fx:Metadata&gt;
    &lt;![CDATA[ 
        /** 
         * @copy spark.skins.spark.ApplicationSkin#hostComponent
         */
        [HostComponent(&quot;spark.components.Scroller&quot;)]
    ]]&gt;
    &lt;/fx:Metadata&gt; 
        
    &lt;fx:Script&gt;
    &lt;![CDATA[    
        /**
         *  @private
         */
        override public function beginHighlightBitmapCapture() : Boolean
        {
            var needUpdate:Boolean = super.beginHighlightBitmapCapture();
            
            // Draw an opaque rect that fill our entire skin. Our background
            // is transparent, but we don't want focus/error skins to
            // poke through.  This is safe to do since we don't have any 
            // graphic elements as direct children.
            graphics.beginFill(0);
            graphics.drawRect(0, 0, width, height);
            graphics.endFill();

            return needUpdate;
        }
        
        /**
         *  @private
         */
        override public function endHighlightBitmapCapture() : Boolean
        {
            var needUpdate:Boolean = super.endHighlightBitmapCapture();
            
            // Clear the rect we drew in beginBitmapCapture();
            graphics.clear();

            return needUpdate;
        }
    ]]&gt;
    &lt;/fx:Script&gt;
	
    &lt;local:VScrollBar id=&quot;verticalScrollBar&quot; visible=&quot;false&quot; /&gt;
    &lt;s:HScrollBar id=&quot;horizontalScrollBar&quot; visible=&quot;false&quot; /&gt;

&lt;/s:SparkSkin&gt;
</pre></p>
<p>And the modified application using the skinclass. Notice the scrolling speeds with and without the skin that uses the override.<br />
<pre class="brush: as3;">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;s:Application xmlns:fx=&quot;http://ns.adobe.com/mxml/2009&quot; 
			   xmlns:s=&quot;library://ns.adobe.com/flex/spark&quot; 
			   xmlns:mx=&quot;library://ns.adobe.com/flex/mx&quot; minWidth=&quot;955&quot; minHeight=&quot;600&quot;&gt;
	&lt;s:Scroller width=&quot;100%&quot; height=&quot;100%&quot; skinClass=&quot;Whatever&quot;&gt;
		&lt;s:Group width=&quot;100%&quot; height=&quot;100%&quot;&gt;
			&lt;s:Group width=&quot;100%&quot; height=&quot;100%&quot;&gt;
				&lt;s:VGroup width=&quot;100%&quot; height=&quot;100%&quot; horizontalAlign=&quot;center&quot;&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
					&lt;s:Label text=&quot;I need to be scrolled, man!&quot; height=&quot;50&quot;/&gt;
				&lt;/s:VGroup&gt;
				&lt;s:layout&gt;
					&lt;s:VerticalLayout paddingBottom=&quot;100&quot; paddingLeft=&quot;100&quot; paddingRight=&quot;100&quot; paddingTop=&quot;100&quot;/&gt;
				&lt;/s:layout&gt;
			&lt;/s:Group&gt;
		&lt;/s:Group&gt;
	&lt;/s:Scroller&gt;
&lt;/s:Application&gt;
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flex4examples.wordpress.com/373/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flex4examples.wordpress.com/373/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flex4examples.wordpress.com/373/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flex4examples.wordpress.com/373/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/flex4examples.wordpress.com/373/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/flex4examples.wordpress.com/373/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/flex4examples.wordpress.com/373/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/flex4examples.wordpress.com/373/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flex4examples.wordpress.com/373/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flex4examples.wordpress.com/373/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flex4examples.wordpress.com/373/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flex4examples.wordpress.com/373/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flex4examples.wordpress.com/373/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flex4examples.wordpress.com/373/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flex4examples.wordpress.com&amp;blog=9214866&amp;post=373&amp;subd=flex4examples&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://flex4examples.wordpress.com/2011/05/18/flex-4-vertical-scroll-speed/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5894105cecce300856ded73b91b95005?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">roustalski</media:title>
		</media:content>
	</item>
	</channel>
</rss>
