<?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: HOWTO: SharedObjects for Local Storage AS3</title>
	<atom:link href="http://drawlogic.com/2008/01/10/howto-sharedobjects-for-local-storage-as3/feed/" rel="self" type="application/rss+xml" />
	<link>http://drawlogic.com/2008/01/10/howto-sharedobjects-for-local-storage-as3/</link>
	<description>interactive and game development technologies for the web - flash, flex, unity3d, silverlight, javascript</description>
	<lastBuildDate>Fri, 12 Mar 2010 09:56:10 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: larry</title>
		<link>http://drawlogic.com/2008/01/10/howto-sharedobjects-for-local-storage-as3/comment-page-1/#comment-2539</link>
		<dc:creator>larry</dc:creator>
		<pubDate>Thu, 12 Feb 2009 00:27:38 +0000</pubDate>
		<guid isPermaLink="false">http://drawlogic.com/2008/01/10/howto-sharedobjects-for-local-storage-as3/#comment-2539</guid>
		<description>In a nutshell I&#039;m adding duplicates of the same child when the user clicks on &quot;addBtn&quot;. How would I use SOs to save the children that have been added?

Cheers

My code:

var container_mc:MovieClip;
var juryMC:MovieClip;

container_mc = new MovieClip();
addChild(container_mc);

addBtn.addEventListener(MouseEvent.CLICK, onAdd);
function onAdd(evt:MouseEvent):void {
	juryMC = new jury();
	juryMC.x = Math.random() * stage.stageWidth;
	juryMC.y = Math.random() * stage.stageHeight;
	container_mc.addChild(juryMC);
}</description>
		<content:encoded><![CDATA[<p>In a nutshell I&#8217;m adding duplicates of the same child when the user clicks on &#8220;addBtn&#8221;. How would I use SOs to save the children that have been added?</p>
<p>Cheers</p>
<p>My code:</p>
<p>var container_mc:MovieClip;<br />
var juryMC:MovieClip;</p>
<p>container_mc = new MovieClip();<br />
addChild(container_mc);</p>
<p>addBtn.addEventListener(MouseEvent.CLICK, onAdd);<br />
function onAdd(evt:MouseEvent):void {<br />
	juryMC = new jury();<br />
	juryMC.x = Math.random() * stage.stageWidth;<br />
	juryMC.y = Math.random() * stage.stageHeight;<br />
	container_mc.addChild(juryMC);<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Toby Skinner</title>
		<link>http://drawlogic.com/2008/01/10/howto-sharedobjects-for-local-storage-as3/comment-page-1/#comment-2508</link>
		<dc:creator>Toby Skinner</dc:creator>
		<pubDate>Fri, 30 Jan 2009 17:48:21 +0000</pubDate>
		<guid isPermaLink="false">http://drawlogic.com/2008/01/10/howto-sharedobjects-for-local-storage-as3/#comment-2508</guid>
		<description>colton, would you not just open a new instance of the SharedObject inside your child swf?

parent
var so:SharedObject = SharedObject.getLocal(&quot;so&quot;);
so.data.x = y;
so.flush();

child
var so:SharedObject = SharedObject.getLocal(&quot;so&quot;);
trace(so.data.x);

not tested.</description>
		<content:encoded><![CDATA[<p>colton, would you not just open a new instance of the SharedObject inside your child swf?</p>
<p>parent<br />
var so:SharedObject = SharedObject.getLocal(&#8220;so&#8221;);<br />
so.data.x = y;<br />
so.flush();</p>
<p>child<br />
var so:SharedObject = SharedObject.getLocal(&#8220;so&#8221;);<br />
trace(so.data.x);</p>
<p>not tested.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Colton</title>
		<link>http://drawlogic.com/2008/01/10/howto-sharedobjects-for-local-storage-as3/comment-page-1/#comment-2490</link>
		<dc:creator>Colton</dc:creator>
		<pubDate>Mon, 26 Jan 2009 19:01:07 +0000</pubDate>
		<guid isPermaLink="false">http://drawlogic.com/2008/01/10/howto-sharedobjects-for-local-storage-as3/#comment-2490</guid>
		<description>Any help? Anyone???</description>
		<content:encoded><![CDATA[<p>Any help? Anyone???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Colton</title>
		<link>http://drawlogic.com/2008/01/10/howto-sharedobjects-for-local-storage-as3/comment-page-1/#comment-2484</link>
		<dc:creator>Colton</dc:creator>
		<pubDate>Sat, 24 Jan 2009 20:25:04 +0000</pubDate>
		<guid isPermaLink="false">http://drawlogic.com/2008/01/10/howto-sharedobjects-for-local-storage-as3/#comment-2484</guid>
		<description>Hi! Thanks so much for this!
How would I access these sharedObjects I define in the parent swf from a swf that is loaded in (child)???

Ex:// On the main timeline of my parent swf movie I define so.data.color = &quot;blue&quot;;... Then a swf loads into my timeline and accesses that color sharedObject...???...

Please help whenever you can. I am desperate. :-)
Thanks!</description>
		<content:encoded><![CDATA[<p>Hi! Thanks so much for this!<br />
How would I access these sharedObjects I define in the parent swf from a swf that is loaded in (child)???</p>
<p>Ex:// On the main timeline of my parent swf movie I define so.data.color = &#8220;blue&#8221;;&#8230; Then a swf loads into my timeline and accesses that color sharedObject&#8230;???&#8230;</p>
<p>Please help whenever you can. I am desperate. <img src='http://drawlogic.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /><br />
Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Agustin</title>
		<link>http://drawlogic.com/2008/01/10/howto-sharedobjects-for-local-storage-as3/comment-page-1/#comment-2464</link>
		<dc:creator>Agustin</dc:creator>
		<pubDate>Wed, 21 Jan 2009 01:12:29 +0000</pubDate>
		<guid isPermaLink="false">http://drawlogic.com/2008/01/10/howto-sharedobjects-for-local-storage-as3/#comment-2464</guid>
		<description>Thanks a lot!!! just what I needed, a simple, quick explanation, without the introduction about the history of cookies in the last score of years...
Got it working right away.
Thanks</description>
		<content:encoded><![CDATA[<p>Thanks a lot!!! just what I needed, a simple, quick explanation, without the introduction about the history of cookies in the last score of years&#8230;<br />
Got it working right away.<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: drawk</title>
		<link>http://drawlogic.com/2008/01/10/howto-sharedobjects-for-local-storage-as3/comment-page-1/#comment-2299</link>
		<dc:creator>drawk</dc:creator>
		<pubDate>Sat, 13 Dec 2008 22:53:24 +0000</pubDate>
		<guid isPermaLink="false">http://drawlogic.com/2008/01/10/howto-sharedobjects-for-local-storage-as3/#comment-2299</guid>
		<description>Hey Tony,

Make sure when you are changing the data to .flush() it.  That is all I can think of without seeing the code where you set save1.data.pass.  Also, maybe saving to a temporary variable can help you debug if it is actually being set or if the text field is acting strangely.</description>
		<content:encoded><![CDATA[<p>Hey Tony,</p>
<p>Make sure when you are changing the data to .flush() it.  That is all I can think of without seeing the code where you set save1.data.pass.  Also, maybe saving to a temporary variable can help you debug if it is actually being set or if the text field is acting strangely.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tony</title>
		<link>http://drawlogic.com/2008/01/10/howto-sharedobjects-for-local-storage-as3/comment-page-1/#comment-2296</link>
		<dc:creator>Tony</dc:creator>
		<pubDate>Sat, 13 Dec 2008 04:41:38 +0000</pubDate>
		<guid isPermaLink="false">http://drawlogic.com/2008/01/10/howto-sharedobjects-for-local-storage-as3/#comment-2296</guid>
		<description>Wow, I officially love you. This was SO easy to understand and helped me a lot. One question though, if I display the information displayed in a shared object, how can I get it to constantly update?
example:

----
Frame 1:
textfield.text=save1.data.pass;
Frame 2:
gotoAndPlay(1);
------
it just stays the same, even if the information changes.

Anyways, thanks again. :)</description>
		<content:encoded><![CDATA[<p>Wow, I officially love you. This was SO easy to understand and helped me a lot. One question though, if I display the information displayed in a shared object, how can I get it to constantly update?<br />
example:</p>
<p>&#8212;-<br />
Frame 1:<br />
textfield.text=save1.data.pass;<br />
Frame 2:<br />
gotoAndPlay(1);<br />
&#8212;&#8212;<br />
it just stays the same, even if the information changes.</p>
<p>Anyways, thanks again. <img src='http://drawlogic.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
