<?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: Modules and singleton manager classes</title>
	<atom:link href="http://blog.flexexamples.com/2007/08/06/modules-and-singleton-manager-classes/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com/2007/08/06/modules-and-singleton-manager-classes/</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Sat, 13 Mar 2010 20:59:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Andrea Bresolin</title>
		<link>http://blog.flexexamples.com/2007/08/06/modules-and-singleton-manager-classes/comment-page-1/#comment-7241</link>
		<dc:creator>Andrea Bresolin</dc:creator>
		<pubDate>Fri, 12 Mar 2010 22:36:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/08/06/modules-and-singleton-manager-classes/#comment-7241</guid>
		<description>Suresh is right. With modules you can have a module-wide singleton or an application-wide singleton depending on whether you import the singleton class also in the main application or not. I&#039;ve written a post on my blog about this that demonstrates the different behaviors. You can check it at http://www.devahead.com/blog/2010/03/beware-of-singleton-in-flex-modules/</description>
		<content:encoded><![CDATA[<p>Suresh is right. With modules you can have a module-wide singleton or an application-wide singleton depending on whether you import the singleton class also in the main application or not. I&#8217;ve written a post on my blog about this that demonstrates the different behaviors. You can check it at <a href="http://www.devahead.com/blog/2010/03/beware-of-singleton-in-flex-modules/" rel="nofollow">http://www.devahead.com/blog/2010/03/beware-of-singleton-in-flex-modules/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Suresh Nagar</title>
		<link>http://blog.flexexamples.com/2007/08/06/modules-and-singleton-manager-classes/comment-page-1/#comment-6518</link>
		<dc:creator>Suresh Nagar</dc:creator>
		<pubDate>Fri, 04 Dec 2009 08:09:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/08/06/modules-and-singleton-manager-classes/#comment-6518</guid>
		<description>Hi Jelger,
i think there is more to it.
I have two modules and one GlobalModel (singleton class).
in both the modules i am calling getInstance of the GlobalModel and setting values to the model.
The changes do reflect in both the modules through global model only if i declare/instantiate the GlobalModel in main file.  If i do not do that both modules share separate instances, infact, it gets reset when module is loaded second time.</description>
		<content:encoded><![CDATA[<p>Hi Jelger,<br />
i think there is more to it.<br />
I have two modules and one GlobalModel (singleton class).<br />
in both the modules i am calling getInstance of the GlobalModel and setting values to the model.<br />
The changes do reflect in both the modules through global model only if i declare/instantiate the GlobalModel in main file.  If i do not do that both modules share separate instances, infact, it gets reset when module is loaded second time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jelger Muylaert</title>
		<link>http://blog.flexexamples.com/2007/08/06/modules-and-singleton-manager-classes/comment-page-1/#comment-347</link>
		<dc:creator>Jelger Muylaert</dc:creator>
		<pubDate>Sat, 06 Jun 2009 00:07:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/08/06/modules-and-singleton-manager-classes/#comment-347</guid>
		<description>By creating the dummy Managers, you &#039;activate&#039; them at the beginning of your application. If you don&#039;t &#039;activate&#039; them soon enough, you get strange errors indeed.</description>
		<content:encoded><![CDATA[<p>By creating the dummy Managers, you &#8216;activate&#8217; them at the beginning of your application. If you don&#8217;t &#8216;activate&#8217; them soon enough, you get strange errors indeed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dennis</title>
		<link>http://blog.flexexamples.com/2007/08/06/modules-and-singleton-manager-classes/comment-page-1/#comment-346</link>
		<dc:creator>Dennis</dc:creator>
		<pubDate>Thu, 07 May 2009 11:37:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/08/06/modules-and-singleton-manager-classes/#comment-346</guid>
		<description>Thank you Peter!

That was exactly what I need!

Regards,
Dennis</description>
		<content:encoded><![CDATA[<p>Thank you Peter!</p>
<p>That was exactly what I need!</p>
<p>Regards,<br />
Dennis</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rconceiver</title>
		<link>http://blog.flexexamples.com/2007/08/06/modules-and-singleton-manager-classes/comment-page-1/#comment-345</link>
		<dc:creator>rconceiver</dc:creator>
		<pubDate>Fri, 20 Jun 2008 04:47:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/08/06/modules-and-singleton-manager-classes/#comment-345</guid>
		<description>Thanks once again Peter...:)

I was facing the same issue. Initially I thought it is occurring because the last Module is not been unloaded properly. So i tried with unloadModule(). But it didn&#039;t work.

Finally I got this solution! Thanks for that...

But can you help me understand why this issue occurs. Is there anything wrong with the Module Child or something else.

Awaiting for the reply.

rconceiver</description>
		<content:encoded><![CDATA[<p>Thanks once again Peter&#8230;:)</p>
<p>I was facing the same issue. Initially I thought it is occurring because the last Module is not been unloaded properly. So i tried with unloadModule(). But it didn&#8217;t work.</p>
<p>Finally I got this solution! Thanks for that&#8230;</p>
<p>But can you help me understand why this issue occurs. Is there anything wrong with the Module Child or something else.</p>
<p>Awaiting for the reply.</p>
<p>rconceiver</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kaushik Datta</title>
		<link>http://blog.flexexamples.com/2007/08/06/modules-and-singleton-manager-classes/comment-page-1/#comment-344</link>
		<dc:creator>Kaushik Datta</dc:creator>
		<pubDate>Fri, 26 Oct 2007 15:06:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/08/06/modules-and-singleton-manager-classes/#comment-344</guid>
		<description>Can you please post an example to show a ProgressBar while the Module SWF is getting loaded?

TIA</description>
		<content:encoded><![CDATA[<p>Can you please post an example to show a ProgressBar while the Module SWF is getting loaded?</p>
<p>TIA</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Valery</title>
		<link>http://blog.flexexamples.com/2007/08/06/modules-and-singleton-manager-classes/comment-page-1/#comment-343</link>
		<dc:creator>Valery</dc:creator>
		<pubDate>Tue, 07 Aug 2007 10:54:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/08/06/modules-and-singleton-manager-classes/#comment-343</guid>
		<description>Interesting, I have some strange issue with modules and styles -- probably should apply this workaround to StyleManager.

Btw, I&#039;d prefer the following form of linking classes:

import mx.managers.PopUpManager;
import mx.managers.DragManager;

private static const LINKAGE:Array = [DragManager, PopUpManager];

First, you save a bit on characters typed. Second, you don&#039;t pollute instance with unnecessary variables, so you save on object size and amount of scroll clicks during debugging ;)

Valery</description>
		<content:encoded><![CDATA[<p>Interesting, I have some strange issue with modules and styles &#8212; probably should apply this workaround to StyleManager.</p>
<p>Btw, I&#8217;d prefer the following form of linking classes:</p>
<p>import mx.managers.PopUpManager;<br />
import mx.managers.DragManager;</p>
<p>private static const LINKAGE:Array = [DragManager, PopUpManager];</p>
<p>First, you save a bit on characters typed. Second, you don&#8217;t pollute instance with unnecessary variables, so you save on object size and amount of scroll clicks during debugging ;)</p>
<p>Valery</p>
]]></content:encoded>
	</item>
</channel>
</rss>
