<?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"
	>
<channel>
	<title>Comments on: ActionScript 3.0 Memento Design Pattern: Encapsulating Saved States</title>
	<atom:link href="http://www.as3dp.com/2008/01/24/actionscript-30-memento-design-pattern-encapsulating-saved-states/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.as3dp.com/2008/01/24/actionscript-30-memento-design-pattern-encapsulating-saved-states/</link>
	<description>OOP for Flash, Flex and AIR</description>
	<pubDate>Thu, 24 Jul 2008 07:26:26 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: Paolo Carraro</title>
		<link>http://www.as3dp.com/2008/01/24/actionscript-30-memento-design-pattern-encapsulating-saved-states/#comment-661</link>
		<dc:creator>Paolo Carraro</dc:creator>
		<pubDate>Fri, 18 Jul 2008 13:43:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.as3dp.com/2008/01/24/actionscript-30-memento-design-pattern-encapsulating-saved-states/#comment-661</guid>
		<description>Hi, i'm reading AS3 Design Pattern and I've just implemented the Memento pattern in my actual app. I'd thank you for your work that help me everyday! 

Now the question about Memento and custom classes. 
I set my custom classes by [RemoteClass] metadata tag cause when I save the state I want force to pass this classes by Value and not by Reference. 
It's the best practise? 

and then... if my custom classes extend Flex or Flash classes, this way doesn't work cause i can't modify the super classes.

Thank you in advance
Paolo</description>
		<content:encoded><![CDATA[<p>Hi, i&#8217;m reading AS3 Design Pattern and I&#8217;ve just implemented the Memento pattern in my actual app. I&#8217;d thank you for your work that help me everyday! </p>
<p>Now the question about Memento and custom classes.<br />
I set my custom classes by [RemoteClass] metadata tag cause when I save the state I want force to pass this classes by Value and not by Reference.<br />
It&#8217;s the best practise? </p>
<p>and then&#8230; if my custom classes extend Flex or Flash classes, this way doesn&#8217;t work cause i can&#8217;t modify the super classes.</p>
<p>Thank you in advance<br />
Paolo</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cubiclegrrl</title>
		<link>http://www.as3dp.com/2008/01/24/actionscript-30-memento-design-pattern-encapsulating-saved-states/#comment-651</link>
		<dc:creator>cubiclegrrl</dc:creator>
		<pubDate>Thu, 10 Jul 2008 15:30:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.as3dp.com/2008/01/24/actionscript-30-memento-design-pattern-encapsulating-saved-states/#comment-651</guid>
		<description>Bill:

I'll take a closer look at the code, with that clarification in mind. 

Thanks so much!

- cubiclegrrl</description>
		<content:encoded><![CDATA[<p>Bill:</p>
<p>I&#8217;ll take a closer look at the code, with that clarification in mind. </p>
<p>Thanks so much!</p>
<p>- cubiclegrrl</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill</title>
		<link>http://www.as3dp.com/2008/01/24/actionscript-30-memento-design-pattern-encapsulating-saved-states/#comment-650</link>
		<dc:creator>Bill</dc:creator>
		<pubDate>Thu, 10 Jul 2008 10:04:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.as3dp.com/2008/01/24/actionscript-30-memento-design-pattern-encapsulating-saved-states/#comment-650</guid>
		<description>Hi Cubiclegrrl,

1. All of the components that make up the example Memento are in .as files. The main parts (following the names used in the Design diagram) are:
   a. Memento.as
   b. Originator.as
   c. Caretaker.as

The DoLoadFMS.as is the equivalent to what most Java programmers would call the "Main" and the LoadSlide.as is just a utility class for loading the slides.

2. The only component used (visual) was a button component and a black graphic backdrop was added. Both could have been handled in code, but slapping on the graphic was super easy and all of the components were called by the same code as with Flex (I believe). I'm pretty sure that the Flex  button components can be access through an MXML file. (I've not spent enough time yet with Flex, but Chandima and others on this list have. However, the same basic AS 3.0 code works with both Flex and Flash up to a point.)

Your point about bridging the visual and non-visual is something I haven't really thought about until recently. For the most part, I've been trying to move from a combination of drawn-on-the-stage visual (in Flash) to all code so that both Flex and Flash users can more easily use the same files. On this blog, I'm going to be moving more toward Flex, but as a whole, we're trying to make it available to both Flash and Flex users.

Thanks for your feedback and please feel free to add more comments.
Kindest regards,
Bill

(It's not Mr. Sanders....makes me feel older than I am!)</description>
		<content:encoded><![CDATA[<p>Hi Cubiclegrrl,</p>
<p>1. All of the components that make up the example Memento are in .as files. The main parts (following the names used in the Design diagram) are:<br />
   a. Memento.as<br />
   b. Originator.as<br />
   c. Caretaker.as</p>
<p>The DoLoadFMS.as is the equivalent to what most Java programmers would call the &#8220;Main&#8221; and the LoadSlide.as is just a utility class for loading the slides.</p>
<p>2. The only component used (visual) was a button component and a black graphic backdrop was added. Both could have been handled in code, but slapping on the graphic was super easy and all of the components were called by the same code as with Flex (I believe). I&#8217;m pretty sure that the Flex  button components can be access through an MXML file. (I&#8217;ve not spent enough time yet with Flex, but Chandima and others on this list have. However, the same basic AS 3.0 code works with both Flex and Flash up to a point.)</p>
<p>Your point about bridging the visual and non-visual is something I haven&#8217;t really thought about until recently. For the most part, I&#8217;ve been trying to move from a combination of drawn-on-the-stage visual (in Flash) to all code so that both Flex and Flash users can more easily use the same files. On this blog, I&#8217;m going to be moving more toward Flex, but as a whole, we&#8217;re trying to make it available to both Flash and Flex users.</p>
<p>Thanks for your feedback and please feel free to add more comments.<br />
Kindest regards,<br />
Bill</p>
<p>(It&#8217;s not Mr. Sanders&#8230;.makes me feel older than I am!)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cubiclegrrl</title>
		<link>http://www.as3dp.com/2008/01/24/actionscript-30-memento-design-pattern-encapsulating-saved-states/#comment-649</link>
		<dc:creator>cubiclegrrl</dc:creator>
		<pubDate>Wed, 09 Jul 2008 23:15:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.as3dp.com/2008/01/24/actionscript-30-memento-design-pattern-encapsulating-saved-states/#comment-649</guid>
		<description>Mr. Sanders:

I'm a Java programmer trying to OOP in Flash/Flex 3 these days.  A couple  of questions for the above example:

1.) Is the "Memento" class stored in an .AS file or some other format?  
2.) What happens when you try incorporating a non-visual, Memento-like class into the script section of an MXML file?  

The overwhelming emphasis in the documentation (at Adobe and elsewhere) is on custom classes that merely extend the base ActionScript classes, not anything you'd to encapsulate information.  Your work is the closest I've found for that, but information about bridging the visual and non-visual worlds is sorely lacking.

Thanks much,

cubiclegrrl</description>
		<content:encoded><![CDATA[<p>Mr. Sanders:</p>
<p>I&#8217;m a Java programmer trying to OOP in Flash/Flex 3 these days.  A couple  of questions for the above example:</p>
<p>1.) Is the &#8220;Memento&#8221; class stored in an .AS file or some other format?<br />
2.) What happens when you try incorporating a non-visual, Memento-like class into the script section of an MXML file?  </p>
<p>The overwhelming emphasis in the documentation (at Adobe and elsewhere) is on custom classes that merely extend the base ActionScript classes, not anything you&#8217;d to encapsulate information.  Your work is the closest I&#8217;ve found for that, but information about bridging the visual and non-visual worlds is sorely lacking.</p>
<p>Thanks much,</p>
<p>cubiclegrrl</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Saving Flex&#8217;s Application State to a Database</title>
		<link>http://www.as3dp.com/2008/01/24/actionscript-30-memento-design-pattern-encapsulating-saved-states/#comment-537</link>
		<dc:creator>Saving Flex&#8217;s Application State to a Database</dc:creator>
		<pubDate>Mon, 10 Mar 2008 20:09:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.as3dp.com/2008/01/24/actionscript-30-memento-design-pattern-encapsulating-saved-states/#comment-537</guid>
		<description>[...] Sanders has a great post on the Memento design pattern over at his blog. After reading it, I thought I&#8217;d chime in and [...]</description>
		<content:encoded><![CDATA[<p>[...] Sanders has a great post on the Memento design pattern over at his blog. After reading it, I thought I&#8217;d chime in and [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill Sanders</title>
		<link>http://www.as3dp.com/2008/01/24/actionscript-30-memento-design-pattern-encapsulating-saved-states/#comment-483</link>
		<dc:creator>Bill Sanders</dc:creator>
		<pubDate>Thu, 07 Feb 2008 12:12:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.as3dp.com/2008/01/24/actionscript-30-memento-design-pattern-encapsulating-saved-states/#comment-483</guid>
		<description>Dan,

Thanks for that insightful comment. Whoaaa! What you're suggesting could set mementos from here to the moon and back if you wanted. That would be totally cool. When you get the write-up on your blog, send us a link to it.

Take care,
Bill</description>
		<content:encoded><![CDATA[<p>Dan,</p>
<p>Thanks for that insightful comment. Whoaaa! What you&#8217;re suggesting could set mementos from here to the moon and back if you wanted. That would be totally cool. When you get the write-up on your blog, send us a link to it.</p>
<p>Take care,<br />
Bill</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Schultz</title>
		<link>http://www.as3dp.com/2008/01/24/actionscript-30-memento-design-pattern-encapsulating-saved-states/#comment-482</link>
		<dc:creator>Dan Schultz</dc:creator>
		<pubDate>Thu, 07 Feb 2008 12:00:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.as3dp.com/2008/01/24/actionscript-30-memento-design-pattern-encapsulating-saved-states/#comment-482</guid>
		<description>You can also take the memento pattern one step further by using ByteArray's and a database. If you persist the type of object where the memento came from, and the memento itself to a blob in a database, you could potentially re-instantiate the state of a whole application.

I'll be writing a post about this on my blog sometime soon, but as always Bill, another great write up!

Dan</description>
		<content:encoded><![CDATA[<p>You can also take the memento pattern one step further by using ByteArray&#8217;s and a database. If you persist the type of object where the memento came from, and the memento itself to a blob in a database, you could potentially re-instantiate the state of a whole application.</p>
<p>I&#8217;ll be writing a post about this on my blog sometime soon, but as always Bill, another great write up!</p>
<p>Dan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill Sanders</title>
		<link>http://www.as3dp.com/2008/01/24/actionscript-30-memento-design-pattern-encapsulating-saved-states/#comment-441</link>
		<dc:creator>Bill Sanders</dc:creator>
		<pubDate>Fri, 25 Jan 2008 11:00:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.as3dp.com/2008/01/24/actionscript-30-memento-design-pattern-encapsulating-saved-states/#comment-441</guid>
		<description>Hi Timbot,

I looked at Hive. I'd think that a state/MVC combination would be very interesting.

Bill</description>
		<content:encoded><![CDATA[<p>Hi Timbot,</p>
<p>I looked at Hive. I&#8217;d think that a state/MVC combination would be very interesting.</p>
<p>Bill</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Timbot</title>
		<link>http://www.as3dp.com/2008/01/24/actionscript-30-memento-design-pattern-encapsulating-saved-states/#comment-440</link>
		<dc:creator>Timbot</dc:creator>
		<pubDate>Fri, 25 Jan 2008 03:51:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.as3dp.com/2008/01/24/actionscript-30-memento-design-pattern-encapsulating-saved-states/#comment-440</guid>
		<description>Another nicely done article.
You might like this; http://code.google.com/p/as-hive/
In this framework, states encapsulate sequences of instructions, and are handled by a state manager.  The sequences are also stored in dictionaries as mementos when instantiated.  It's cool, there is a lot to see in there.
-t.</description>
		<content:encoded><![CDATA[<p>Another nicely done article.<br />
You might like this; <a href="http://code.google.com/p/as-hive/" rel="nofollow">http://code.google.com/p/as-hive/</a><br />
In this framework, states encapsulate sequences of instructions, and are handled by a state manager.  The sequences are also stored in dictionaries as mementos when instantiated.  It&#8217;s cool, there is a lot to see in there.<br />
-t.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.806 seconds -->
