<?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: Extend a Singleton</title>
	<atom:link href="http://www.soundstep.com/blog/2008/11/01/extend-a-singleton/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.soundstep.com/blog/2008/11/01/extend-a-singleton/</link>
	<description>Flash, Flex and ActionScript talking.</description>
	<lastBuildDate>Sun, 05 Feb 2012 03:17:23 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: robert</title>
		<link>http://www.soundstep.com/blog/2008/11/01/extend-a-singleton/comment-page-1/#comment-50444</link>
		<dc:creator>robert</dc:creator>
		<pubDate>Tue, 13 Sep 2011 09:40:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.soundstep.com/blog/?p=118#comment-50444</guid>
		<description>There is a problem with updateInstance(). You throw the previous Singleton._instance away. Put this in front of Main() function to see that you lose old values:

	Singleton.getInstance().initializeMyValue();
	trace(&quot;after = &quot;, Singleton.getInstance().myValueNotInitialized);
	trace(&quot;after (1) = &quot;, SingletonExtended.getInstance().myValueNotInitialized + &quot; &gt;&gt;&gt; from SingletonExtended&quot;);
	trace(&quot;after (2) = &quot;, Singleton.getInstance().myValueNotInitialized + &quot; &gt;&gt;&gt; from Singleton&quot;);</description>
		<content:encoded><![CDATA[<p>There is a problem with updateInstance(). You throw the previous Singleton._instance away. Put this in front of Main() function to see that you lose old values:</p>
<p>	Singleton.getInstance().initializeMyValue();<br />
	trace(&#8220;after = &#8220;, Singleton.getInstance().myValueNotInitialized);<br />
	trace(&#8220;after (1) = &#8220;, SingletonExtended.getInstance().myValueNotInitialized + &#8221; &gt;&gt;&gt; from SingletonExtended&#8221;);<br />
	trace(&#8220;after (2) = &#8220;, Singleton.getInstance().myValueNotInitialized + &#8221; &gt;&gt;&gt; from Singleton&#8221;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tweets that mention Extend a Singleton &#124; Soundstep, daily ActionScript. -- Topsy.com</title>
		<link>http://www.soundstep.com/blog/2008/11/01/extend-a-singleton/comment-page-1/#comment-1522</link>
		<dc:creator>Tweets that mention Extend a Singleton &#124; Soundstep, daily ActionScript. -- Topsy.com</dc:creator>
		<pubDate>Wed, 21 Apr 2010 21:24:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.soundstep.com/blog/?p=118#comment-1522</guid>
		<description>[...] This post was mentioned on Twitter by youji maekawa. youji maekawa said: 次の開発からこれ導入したい。singleton大好き。 http://bit.ly/cnzlb4 [...]</description>
		<content:encoded><![CDATA[<p>[...] This post was mentioned on Twitter by youji maekawa. youji maekawa said: 次の開発からこれ導入したい。singleton大好き。 <a href="http://bit.ly/cnzlb4" rel="nofollow">http://bit.ly/cnzlb4</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cybus</title>
		<link>http://www.soundstep.com/blog/2008/11/01/extend-a-singleton/comment-page-1/#comment-995</link>
		<dc:creator>cybus</dc:creator>
		<pubDate>Fri, 12 Mar 2010 01:49:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.soundstep.com/blog/?p=118#comment-995</guid>
		<description>This is sweet. A game we were working on required this type of pattern and this worked perfectly.</description>
		<content:encoded><![CDATA[<p>This is sweet. A game we were working on required this type of pattern and this worked perfectly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kassel</title>
		<link>http://www.soundstep.com/blog/2008/11/01/extend-a-singleton/comment-page-1/#comment-161</link>
		<dc:creator>kassel</dc:creator>
		<pubDate>Fri, 20 Feb 2009 18:43:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.soundstep.com/blog/?p=118#comment-161</guid>
		<description>first thank , i&#039;ll study, becose i want to make anextended class from singleton and in the extended class, puts into the vars to call , like an instance of singlenton.</description>
		<content:encoded><![CDATA[<p>first thank , i&#8217;ll study, becose i want to make anextended class from singleton and in the extended class, puts into the vars to call , like an instance of singlenton.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

