<?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: ActionScript 3.0 Strategy Design Pattern: Under No Conditionals</title>
	<atom:link href="http://www.as3dp.com/2008/11/09/actionscript-30-strategy-design-pattern-under-no-conditionals/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.as3dp.com/2008/11/09/actionscript-30-strategy-design-pattern-under-no-conditionals/</link>
	<description>OOP Techniques for Flash and Flex Developers</description>
	<lastBuildDate>Mon, 26 Jul 2010 13:40:37 -0700</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/2008/11/09/actionscript-30-strategy-design-pattern-under-no-conditionals/comment-page-1/#comment-1943</link>
		<dc:creator>William B. Sanders</dc:creator>
		<pubDate>Wed, 01 Apr 2009 20:37:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.as3dp.com/?p=286#comment-1943</guid>
		<description>Marcel,

This is where it&#039;s come, and the trip has been fun.

Nice to hear from you,
Bill</description>
		<content:encoded><![CDATA[<p>Marcel,</p>
<p>This is where it&#8217;s come, and the trip has been fun.</p>
<p>Nice to hear from you,<br />
Bill</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcel</title>
		<link>http://www.as3dp.com/2008/11/09/actionscript-30-strategy-design-pattern-under-no-conditionals/comment-page-1/#comment-1942</link>
		<dc:creator>Marcel</dc:creator>
		<pubDate>Wed, 01 Apr 2009 18:20:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.as3dp.com/?p=286#comment-1942</guid>
		<description>So this is where it&#039;s come to now?  Really fun stuff!

Marcel</description>
		<content:encoded><![CDATA[<p>So this is where it&#8217;s come to now?  Really fun stuff!</p>
<p>Marcel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill Sanders</title>
		<link>http://www.as3dp.com/2008/11/09/actionscript-30-strategy-design-pattern-under-no-conditionals/comment-page-1/#comment-979</link>
		<dc:creator>Bill Sanders</dc:creator>
		<pubDate>Fri, 12 Dec 2008 01:58:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.as3dp.com/?p=286#comment-979</guid>
		<description>Hi Sebben,

Wouldn&#039;t that be re-starting after the first iteration? Pause would work just like a regular pause.

Let me know if I&#039;m missing something...

Thanks,
Bill</description>
		<content:encoded><![CDATA[<p>Hi Sebben,</p>
<p>Wouldn&#8217;t that be re-starting after the first iteration? Pause would work just like a regular pause.</p>
<p>Let me know if I&#8217;m missing something&#8230;</p>
<p>Thanks,<br />
Bill</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sebben</title>
		<link>http://www.as3dp.com/2008/11/09/actionscript-30-strategy-design-pattern-under-no-conditionals/comment-page-1/#comment-978</link>
		<dc:creator>Sebben</dc:creator>
		<pubDate>Thu, 11 Dec 2008 21:39:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.as3dp.com/?p=286#comment-978</guid>
		<description>what about a looping sound that you can pause...</description>
		<content:encoded><![CDATA[<p>what about a looping sound that you can pause&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill Sanders</title>
		<link>http://www.as3dp.com/2008/11/09/actionscript-30-strategy-design-pattern-under-no-conditionals/comment-page-1/#comment-958</link>
		<dc:creator>Bill Sanders</dc:creator>
		<pubDate>Mon, 08 Dec 2008 22:47:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.as3dp.com/?p=286#comment-958</guid>
		<description>Hi Bob,

Glad it worked well for you. It sounds (no pun intended) that you did it just right.

Bill</description>
		<content:encoded><![CDATA[<p>Hi Bob,</p>
<p>Glad it worked well for you. It sounds (no pun intended) that you did it just right.</p>
<p>Bill</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob</title>
		<link>http://www.as3dp.com/2008/11/09/actionscript-30-strategy-design-pattern-under-no-conditionals/comment-page-1/#comment-953</link>
		<dc:creator>Bob</dc:creator>
		<pubDate>Mon, 08 Dec 2008 13:21:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.as3dp.com/?p=286#comment-953</guid>
		<description>Hi Bill, 

Thanks for your quick and helpful reply.
I have implemented the said state pattern and got it working with sound channels.

The way I did is was by sending a reference to the playTune context class everytime the play was invoked.

Is that the best way to do it?

Thanks,

Bob</description>
		<content:encoded><![CDATA[<p>Hi Bill, </p>
<p>Thanks for your quick and helpful reply.<br />
I have implemented the said state pattern and got it working with sound channels.</p>
<p>The way I did is was by sending a reference to the playTune context class everytime the play was invoked.</p>
<p>Is that the best way to do it?</p>
<p>Thanks,</p>
<p>Bob</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill Sanders</title>
		<link>http://www.as3dp.com/2008/11/09/actionscript-30-strategy-design-pattern-under-no-conditionals/comment-page-1/#comment-925</link>
		<dc:creator>Bill Sanders</dc:creator>
		<pubDate>Fri, 05 Dec 2008 20:41:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.as3dp.com/?p=286#comment-925</guid>
		<description>Hi Bob,

You have hit the nail on the head and identified the essence of dealing with design patterns and Flash and Flex. Namely it&#039;s not easy and how do you deal with what amounts to either a global variable (which none of us want) or to put the whole thing into a single class (easy but not a design pattern)?

Take a look at how it was done using a State pattern in Chapter 10 or another type of use in Chapter 11 where the algorithms were used with a Flash design using the Strategy pattern. I believe it forces us to look ever more closely at the nature of relations between classes in design patterns.

I&#039;m not being coy. Rather, I&#039;ve been busy and haven&#039;t had time to solve the problem I presented. The idea emerged from the example in Chapter 9 using the Template Method where it was possible to switch between a video and sound player. Once the first one was solved, the other was quite easy. In this case, you have to deal with the Channel class to start and stop the MP3 play, but how does one access the same instance to start and stop the play -- or set up a pause? Hours of fun!

Cheers,
Bill</description>
		<content:encoded><![CDATA[<p>Hi Bob,</p>
<p>You have hit the nail on the head and identified the essence of dealing with design patterns and Flash and Flex. Namely it&#8217;s not easy and how do you deal with what amounts to either a global variable (which none of us want) or to put the whole thing into a single class (easy but not a design pattern)?</p>
<p>Take a look at how it was done using a State pattern in Chapter 10 or another type of use in Chapter 11 where the algorithms were used with a Flash design using the Strategy pattern. I believe it forces us to look ever more closely at the nature of relations between classes in design patterns.</p>
<p>I&#8217;m not being coy. Rather, I&#8217;ve been busy and haven&#8217;t had time to solve the problem I presented. The idea emerged from the example in Chapter 9 using the Template Method where it was possible to switch between a video and sound player. Once the first one was solved, the other was quite easy. In this case, you have to deal with the Channel class to start and stop the MP3 play, but how does one access the same instance to start and stop the play &#8212; or set up a pause? Hours of fun!</p>
<p>Cheers,<br />
Bill</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob</title>
		<link>http://www.as3dp.com/2008/11/09/actionscript-30-strategy-design-pattern-under-no-conditionals/comment-page-1/#comment-922</link>
		<dc:creator>Bob</dc:creator>
		<pubDate>Fri, 05 Dec 2008 11:11:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.as3dp.com/?p=286#comment-922</guid>
		<description>Great tutorials.  I have been trying to do your challenge however I have come stuck with the instances of playtune.  It plays alright, but when it comes to stopping, the sound channel is null.  The reason I think this is happening is because I am creating a new PlayTune class for every state (play, pause, stop) and therefore disregarding the previously initiated attempt.
How will I go about sending the references from the PlayTune to and from the specified states?

Hope I was clear, and thanks for the articles and help.</description>
		<content:encoded><![CDATA[<p>Great tutorials.  I have been trying to do your challenge however I have come stuck with the instances of playtune.  It plays alright, but when it comes to stopping, the sound channel is null.  The reason I think this is happening is because I am creating a new PlayTune class for every state (play, pause, stop) and therefore disregarding the previously initiated attempt.<br />
How will I go about sending the references from the PlayTune to and from the specified states?</p>
<p>Hope I was clear, and thanks for the articles and help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: localToGlobal &#187; Blog Archive &#187; news review -&#62; 47th week of 2008</title>
		<link>http://www.as3dp.com/2008/11/09/actionscript-30-strategy-design-pattern-under-no-conditionals/comment-page-1/#comment-893</link>
		<dc:creator>localToGlobal &#187; Blog Archive &#187; news review -&#62; 47th week of 2008</dc:creator>
		<pubDate>Sun, 23 Nov 2008 21:33:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.as3dp.com/?p=286#comment-893</guid>
		<description>[...] &gt; ActionScript 3.0 Strategy Design Pattern: Under No Conditionals [...]</description>
		<content:encoded><![CDATA[<p>[...] &gt; ActionScript 3.0 Strategy Design Pattern: Under No Conditionals [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
