<?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>imnotpete.com &#187; flex</title>
	<atom:link href="http://imnotpete.com/category/flex/feed/" rel="self" type="application/rss+xml" />
	<link>http://imnotpete.com</link>
	<description></description>
	<lastBuildDate>Fri, 30 Mar 2012 11:20:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Flex &#8211; Generate a ModuleLoader at Runtime</title>
		<link>http://imnotpete.com/2007/07/28/flex-generate-a-moduleloader-at-runtime/</link>
		<comments>http://imnotpete.com/2007/07/28/flex-generate-a-moduleloader-at-runtime/#comments</comments>
		<pubDate>Sat, 28 Jul 2007 13:23:00 +0000</pubDate>
		<dc:creator>Sam</dc:creator>
				<category><![CDATA[blogathon 2007]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://imnotpete.com/blog/?p=11</guid>
		<description><![CDATA[I spent most of a day running up against a problem in Adobe&#8217;s Flex 2.0. Flex 2.0.1 introduced the concept of modules. With this, you can stick a &#60;mx:ModuleLoader&#62; component in your .mxml file, then load it with the url to your module .swf file when you need it. Now, I wanted to allow the [...]]]></description>
			<content:encoded><![CDATA[<p>I spent most of a day running up against a problem in Adobe&#8217;s <a href="http://www.adobe.com/products/flex/">Flex 2.0</a>. Flex 2.0.1 introduced the concept of modules. With this, you can stick a &lt;mx:ModuleLoader&gt; component in your .mxml file, then load it with the url to your module .swf file when you need it.</p>
<p>Now, I wanted to allow the user to load arbitrary modules at arbitrary times, and then load those into a ViewStack component. The problem is, no matter what I did, I couldn&#8217;t seem to get the dynamically loaded module to obey sizing (IE, height=&#8221;100%&#8221;). Here&#8217;s the solution: You have to put the ModuleLoader in a Canvas, and then add the Canvas to your ViewStack. Also, you must use percentWidth and percentHeight in your &lt;Module&gt; tag (not width and height).</p>
]]></content:encoded>
			<wfw:commentRss>http://imnotpete.com/2007/07/28/flex-generate-a-moduleloader-at-runtime/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Served from: imnotpete.com @ 2012-05-21 22:04:53 -->
