<?xml version="1.0" encoding="iso-8859-1"?><rss version="2.0">
<channel><title><![CDATA[ActionScript.org Flash, Flex and ActionScript Resources - Comments for article: Design patters -- Borg and the Singleton in AS3]]></title><link>http://www.actionscript.org/resources</link><description /><language>en-us</language><copyright><![CDATA[http://www.actionscript.org/resources]]></copyright><generator>N/A</generator><webMaster>general.redirect@gmail.com</webMaster><lastBuildDate>Mon, 23 Nov 2009 09:25:45 CST</lastBuildDate><ttl>20</ttl><item><title><![CDATA[Comment #1]]></title><link>http://www.actionscript.org/resources/articles/802/1/Design-patters----Borg-and-the-Singleton-in-AS3/Page1.html#Comment11799</link><description><![CDATA[For the Library object would it make more sense for it to extend Proxy?  That way during the get and set of any value you could enforce checkout by virtue of accessing the values.<br/><br/>
(Comment posted by Adam at 8:48 pm, Fri 8th Aug 2008)]]></description><author>no@spam.com (Adam)</author><pubDate><![CDATA[Fri, 08 Aug 2008 20:48:43 CDT]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/802/1/Design-patters----Borg-and-the-Singleton-in-AS3/Page1.html#Comment11799</guid></item><item><title><![CDATA[Comment #2 (Reply to Comment #1)]]></title><link>http://www.actionscript.org/resources/articles/802/1/Design-patters----Borg-and-the-Singleton-in-AS3/Page1.html#Comment11805</link><description><![CDATA[Honestly, the implementation of the "library class" itself is really relative to the needs at the time.  I recently used the above pattern to centralize my event management (and, once again, thank you to Jason Cook).  The "library" in that case was no more than an event dispatcher.  

But, in this case, you are probably right.  If you were to have Library extend proxy, it would give a lot of functionality in a much simpler way.  Good catch.<br/><br/>
(Comment posted by C.W. Allen-Poole at 9:05 am, Mon 11th Aug 2008)]]></description><author>no@spam.com (C.W. Allen-Poole)</author><pubDate><![CDATA[Mon, 11 Aug 2008 09:05:10 CDT]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/802/1/Design-patters----Borg-and-the-Singleton-in-AS3/Page1.html#Comment11805</guid></item><item><title><![CDATA[Comment #3]]></title><link>http://www.actionscript.org/resources/articles/802/1/Design-patters----Borg-and-the-Singleton-in-AS3/Page1.html#Comment11800</link><description><![CDATA[Also, the Library object may not need to be public, so it can only be consumed by the Borg class. I worked up a sample I can send to you if you want to take a look.<br/><br/>
(Comment posted by Adam at 9:10 pm, Fri 8th Aug 2008)]]></description><author>no@spam.com (Adam)</author><pubDate><![CDATA[Fri, 08 Aug 2008 21:10:48 CDT]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/802/1/Design-patters----Borg-and-the-Singleton-in-AS3/Page1.html#Comment11800</guid></item><item><title><![CDATA[Comment #4]]></title><link>http://www.actionscript.org/resources/articles/802/1/Design-patters----Borg-and-the-Singleton-in-AS3/Page1.html#Comment11807</link><description><![CDATA[Once again, that's up to the circumstances at the time. I like the idea of having a public Library class in case I'd like to have something else which needs a check-in/check-out function (say, for example, I want to use it two circumstances with different parent classes).  But I'd always love to see another's code.<br/><br/>
(Comment posted by C.W. Allen-Poole at 9:11 am, Mon 11th Aug 2008)]]></description><author>no@spam.com (C.W. Allen-Poole)</author><pubDate><![CDATA[Mon, 11 Aug 2008 09:11:03 CDT]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/802/1/Design-patters----Borg-and-the-Singleton-in-AS3/Page1.html#Comment11807</guid></item></channel></rss>