<?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/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
	>
<channel>
	<title>Comments on: Deciding on a Design Pattern: A Graphic and Text Catalog</title>
	<atom:link href="http://www.as3dp.com/2009/07/07/deciding-on-a-design-pattern-a-graphic-and-text-catalog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.as3dp.com/2009/07/07/deciding-on-a-design-pattern-a-graphic-and-text-catalog/</link>
	<description>OOP Techniques for Flash and Flex Developers</description>
	<lastBuildDate>Wed, 10 Mar 2010 17:32:01 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: William B. Sanders</title>
		<link>http://www.as3dp.com/2009/07/07/deciding-on-a-design-pattern-a-graphic-and-text-catalog/comment-page-1/#comment-2674</link>
		<dc:creator>William B. Sanders</dc:creator>
		<pubDate>Fri, 10 Jul 2009 14:44:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.as3dp.com/?p=1134#comment-2674</guid>
		<description>Hi dp,

Funny you should ask... I&#039;m working on it now, and I&#039;ve come to a fork in the road. One fork goes toward a Factory Method pattern and the other fork goes to a Strategy pattern. None of the algorithms are difficult to write as far as accessing external data; but with the Strategy pattern, I&#039;m trying to figure out the best way to move text data from a ConcreteStrategy to the Context class so that it can be accessed by the Client and placed on the stage. The solution for the graphic aspect of it was very simple because a Loader object can be placed directly into a DisplayObject  from a ConcreteStrategy class. Text, on the other hand, is a bit more slippery. Chandima worked out one way to do it with an XMLLoader I had created as part of another project, and I&#039;m going to putz around with it for a while and see if I can use that technique or work out another that sets text in a TextField from the ConcreteStrategy.  Otherwise, I may just use the Factory Method.

In any case, once the framework is set up, I&#039;ll then have to work up all of the graphics for the class diagrams and the text for the different properties that the page has. (This all will be done with ActionScript 3.0 classes so that both Flash &amp; Flex developers can use the same code.)

Once I get to the point where I can fit everything in, the rest of the work is just grunt work adding text to text files and the creating the graphics. It would be nice if some of the readers of this Blog wanted to join in and help out. It might be fun.

Kindest regards,
Bill</description>
		<content:encoded><![CDATA[<p>Hi dp,</p>
<p>Funny you should ask&#8230; I&#8217;m working on it now, and I&#8217;ve come to a fork in the road. One fork goes toward a Factory Method pattern and the other fork goes to a Strategy pattern. None of the algorithms are difficult to write as far as accessing external data; but with the Strategy pattern, I&#8217;m trying to figure out the best way to move text data from a ConcreteStrategy to the Context class so that it can be accessed by the Client and placed on the stage. The solution for the graphic aspect of it was very simple because a Loader object can be placed directly into a DisplayObject  from a ConcreteStrategy class. Text, on the other hand, is a bit more slippery. Chandima worked out one way to do it with an XMLLoader I had created as part of another project, and I&#8217;m going to putz around with it for a while and see if I can use that technique or work out another that sets text in a TextField from the ConcreteStrategy.  Otherwise, I may just use the Factory Method.</p>
<p>In any case, once the framework is set up, I&#8217;ll then have to work up all of the graphics for the class diagrams and the text for the different properties that the page has. (This all will be done with ActionScript 3.0 classes so that both Flash &#038; Flex developers can use the same code.)</p>
<p>Once I get to the point where I can fit everything in, the rest of the work is just grunt work adding text to text files and the creating the graphics. It would be nice if some of the readers of this Blog wanted to join in and help out. It might be fun.</p>
<p>Kindest regards,<br />
Bill</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dp</title>
		<link>http://www.as3dp.com/2009/07/07/deciding-on-a-design-pattern-a-graphic-and-text-catalog/comment-page-1/#comment-2672</link>
		<dc:creator>dp</dc:creator>
		<pubDate>Fri, 10 Jul 2009 10:24:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.as3dp.com/?p=1134#comment-2672</guid>
		<description>Looking forward to seeing the finished AIR app - could be a very useful one. When about are you going to release it...?</description>
		<content:encoded><![CDATA[<p>Looking forward to seeing the finished AIR app &#8211; could be a very useful one. When about are you going to release it&#8230;?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
