<?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: AS2: SharedObject that expires like a cookie</title>
	<atom:link href="http://unformatt.com/news/as2-sharedobject-that-expires-like-a-cookie/feed/" rel="self" type="application/rss+xml" />
	<link>http://unformatt.com/news/as2-sharedobject-that-expires-like-a-cookie/</link>
	<description>Random.</description>
	<pubDate>Fri, 10 Sep 2010 15:52:17 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: vynsane</title>
		<link>http://unformatt.com/news/as2-sharedobject-that-expires-like-a-cookie/comment-page-1/#comment-180</link>
		<dc:creator>vynsane</dc:creator>
		<pubDate>Wed, 26 Aug 2009 17:26:39 +0000</pubDate>
		<guid isPermaLink="false">http://unformatt.com/news/as2-sharedobject-that-expires-like-a-cookie/#comment-180</guid>
		<description>just wanted to post my solution, based on pittsburghjoe's, on how to implement in the main timeline.

var c:Cookie = new Cookie("hello");
var itsThere = c.getValue();
if(itsThere=="there"){
	gotoAndPlay(95);
}
else {
	var d:Date = new Date();
	d.setHours(d.getHours()+3 );
	c.setValue("there", d );
	gotoAndPlay(5);
}

basically, i have a main timeline movie that begins at frame '5', which i want to play once per person per 3hrs. if there is no data for the SO, it sets the time and value and plays the movie from frame 5. if the value is set in the SO, it plays frame 95, the last frame.

thanks much for a great solution, matt.</description>
		<content:encoded><![CDATA[<p>just wanted to post my solution, based on pittsburghjoe&#8217;s, on how to implement in the main timeline.</p>
<p>var c:Cookie = new Cookie(&#8221;hello&#8221;);<br />
var itsThere = c.getValue();<br />
if(itsThere==&#8221;there&#8221;){<br />
	gotoAndPlay(95);<br />
}<br />
else {<br />
	var d:Date = new Date();<br />
	d.setHours(d.getHours()+3 );<br />
	c.setValue(&#8221;there&#8221;, d );<br />
	gotoAndPlay(5);<br />
}</p>
<p>basically, i have a main timeline movie that begins at frame &#8216;5&#8242;, which i want to play once per person per 3hrs. if there is no data for the SO, it sets the time and value and plays the movie from frame 5. if the value is set in the SO, it plays frame 95, the last frame.</p>
<p>thanks much for a great solution, matt.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pittsburghjoe</title>
		<link>http://unformatt.com/news/as2-sharedobject-that-expires-like-a-cookie/comment-page-1/#comment-168</link>
		<dc:creator>pittsburghjoe</dc:creator>
		<pubDate>Wed, 16 Jul 2008 20:39:27 +0000</pubDate>
		<guid isPermaLink="false">http://unformatt.com/news/as2-sharedobject-that-expires-like-a-cookie/#comment-168</guid>
		<description>word to the wise ..this won't work in Flash IDE testing (only when a browser is involved)

also this would have helped me:
var c:Cookie = new Cookie("hello");
var itsThere = c.getValue();
if(itsThere=="there"){
	gotoAndStop("menu");
}

and then you set the value later in the timeline with the timestamp ("d")
c.setValue("there", d );</description>
		<content:encoded><![CDATA[<p>word to the wise ..this won&#8217;t work in Flash IDE testing (only when a browser is involved)</p>
<p>also this would have helped me:<br />
var c:Cookie = new Cookie(&#8221;hello&#8221;);<br />
var itsThere = c.getValue();<br />
if(itsThere==&#8221;there&#8221;){<br />
	gotoAndStop(&#8221;menu&#8221;);<br />
}</p>
<p>and then you set the value later in the timeline with the timestamp (&#8221;d&#8221;)<br />
c.setValue(&#8221;there&#8221;, d );</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jack Freudenheim</title>
		<link>http://unformatt.com/news/as2-sharedobject-that-expires-like-a-cookie/comment-page-1/#comment-118</link>
		<dc:creator>Jack Freudenheim</dc:creator>
		<pubDate>Tue, 05 Feb 2008 13:39:25 +0000</pubDate>
		<guid isPermaLink="false">http://unformatt.com/news/as2-sharedobject-that-expires-like-a-cookie/#comment-118</guid>
		<description>Thanks - nice job!</description>
		<content:encoded><![CDATA[<p>Thanks - nice job!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
