<?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>iamdave &#187; Modules</title>
	<atom:link href="http://i.amdave.com/archives/tag/modules/feed" rel="self" type="application/rss+xml" />
	<link>http://i.amdave.com</link>
	<description>Programmer - Baltimore, MD</description>
	<lastBuildDate>Fri, 13 Aug 2010 15:39:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Flex 3 Modules -&gt; What are they for?</title>
		<link>http://i.amdave.com/archives/59</link>
		<comments>http://i.amdave.com/archives/59#comments</comments>
		<pubDate>Fri, 18 Dec 2009 19:43:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Modules]]></category>
		<category><![CDATA[Rant]]></category>

		<guid isPermaLink="false">http://i.amdave.com/?p=59</guid>
		<description><![CDATA[In a recent project, I attempted to implement a flex interface to an e-learning application.  The basics of the application are as follows: Video game style e-learning application for a medical school. Administrative game scenario builder and cms I thought I would use Flex Modules: Main Application &#8211; handles authentication and main navigation Admin Module [...]]]></description>
			<content:encoded><![CDATA[<p>In a recent project, I attempted to implement a flex interface to an e-learning application.  The basics of the application are as follows:</p>
<ol>
<li>Video game style e-learning application for a medical school.</li>
<li>Administrative game scenario builder and cms</li>
</ol>
<p>I thought I would use Flex Modules:</p>
<ol>
<blockquote>
<li>Main Application &#8211; handles authentication and main navigation
<ol>
<li>Admin Module
<ol>
<li> Users Admin Module</li>
<li> Foo Admin Module</li>
<li>Bar Admin Module</li>
</ol>
</li>
<li>Game Module</li>
</ol>
</li>
</blockquote>
</ol>
<p>This seemed logical today.  I could load the modules and unload them as needed.  This way I could have one application and all the resources available, but never loading all the overhead unless I needed it.  That way, if I just looked on to do the Game, I would only use those resources and not have all the memory being used by the admin features.<br />
I was wrong.  Modules do not work that way.  You can not load a module that registers any events, or many other common memory allocating tasks, and unload them to release the memory.  Flex holds onto many instances which cause a number of problems, many of which are outlined here:  <a href="http://blogs.adobe.com/aharui/2009/08/what_we_know_about_unloading_m.html" target="_blank">Alexs Flex Closet</a>.</p>
<p>Furthermore, If you try to use a class in a loaded module that hasn&#8217;t been registered by the main application, you must go to the main application and register it, otherwise you get an error on things like Lists, ComboBoxes.  This is not a lot of additional work but, to me, doesn&#8217;t seem like the way a module should work.</p>
<p>If I can&#8217;t load and unload modules without incurring memory leaks or errors, what good are modules.</p>
<p>Adobe, please fix this.  It is far more important than all the time/money you are spending making Data Intensive Web Apps accessible for Designers.  Just make it work for developers first, PLEASE, or we will find another technology to use.</p>
]]></content:encoded>
			<wfw:commentRss>http://i.amdave.com/archives/59/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
