<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>sharedobject &#8211; Alessandro Crugnola &#8211; sephiroth.it</title>
	<atom:link href="https://blog.sephiroth.it/tag/sharedobject/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.sephiroth.it</link>
	<description>programmer by pure chance</description>
	<lastBuildDate>Sun, 20 Jun 2010 08:44:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://blog.sephiroth.it/wp-content/uploads/2019/03/cropped-sepy-big-32x32.png</url>
	<title>sharedobject &#8211; Alessandro Crugnola &#8211; sephiroth.it</title>
	<link>https://blog.sephiroth.it</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>SharedObject reader plugin for FD3</title>
		<link>https://blog.sephiroth.it/2007/09/22/sharedobject-reader-plugin-for-fd3/</link>
					<comments>https://blog.sephiroth.it/2007/09/22/sharedobject-reader-plugin-for-fd3/#respond</comments>
		
		<dc:creator><![CDATA[Alessandro Crugnola]]></dc:creator>
		<pubDate>Sun, 23 Sep 2007 02:44:33 +0000</pubDate>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[fdplugins]]></category>
		<category><![CDATA[flashdevelop]]></category>
		<category><![CDATA[sharedobject]]></category>
		<guid isPermaLink="false">http://blog.sephiroth.it/?p=231</guid>

					<description><![CDATA[In the past week I was working on the SharedObject plugin for FlashDevelop 3. First I just made a port of my previous sepy sharedobject reader python code into C#, but then for the new AMF3 sharedobject encoding I found this java class very useful. By the way, after coding and coding.. I finally managed &#8230; <a href="https://blog.sephiroth.it/2007/09/22/sharedobject-reader-plugin-for-fd3/" class="more-link">Continue reading <span class="screen-reader-text">SharedObject reader plugin for FD3</span></a>]]></description>
										<content:encoded><![CDATA[<p><a href="http://fdplugins.googlecode.com/svn/trunk/images/so_reader.png" target="_blank"><img decoding="async" src="http://fdplugins.googlecode.com/svn/trunk/images/so_reader.png" border="0" alt="" hspace="4" vspace="4&quot;" width="200" height="165" align="left" /></a> In the past week I was working on the <a href="http://code.google.com/p/fdplugins/wiki/SharedObjectReader">SharedObject</a> plugin for <a href="http://www.flashdevelop.org/">FlashDevelop</a> 3.<br />
First I just made a port of my previous sepy sharedobject reader <strong>python </strong>code into <strong>C#</strong>, but then for the new AMF3 sharedobject encoding I found this <a href="http://xk72.com/blog/2006/04/28/amf3-reference-deserializer-in-java/">java class</a> very useful.<br />
By the way, after coding and coding.. I finally managed to create a good solution (ok, I have to test it a lot again&#8230;).<br />
You can find the plugin here: <a href="http://code.google.com/p/fdplugins">http://code.google.com/p/fdplugins</a><br />
<strong></strong></p>
<p><strong>But the interesting thing</strong> I found was another!<br />
Flash does not read the sharedojects correctly (at least the amf0 ones)!</p>
<p>To reproduce this bug follow these steps:</p>
<p>Create a new document (flash8 / as2)<br />
&#8211; Add this code in the timeline:<br />
<code lang="actionscript">var so:SharedObject = SharedObject.getLocal("flash8", "/");<br />
so.clear();<br />
so.data.obj1 = new XML("");<br />
so.data.obj2 = new Date();<br />
so.data.obj3 = so.data.obj2;<br />
so.data.obj4 = {a:1, b:so.data.obj1, c:[1,2,3], d:so.data.obj2};<br />
so.data.obj5 = so.data.obj4.c;<br />
so.flush();</code><br />
you will see this in the debug view variables:<br />
<code>Variabile _level0.so = [oggetto #1, classe 'SharedObject'] {<br />
data:[oggetto #2, classe 'Object'] {<br />
obj1:[oggetto #3] {<br />
<root />;<br />
},<br />
obj2:[oggetto #4, classe 'Date'] {Sat Sep 22 19:31:31 GMT+0200 2007},<br />
obj3:[oggetto #4, classe 'Date'],<br />
obj4:[oggetto #5, classe 'Object'] {<br />
d:[oggetto #4, classe 'Date'],<br />
c:[oggetto #6, classe 'Array'] [<br />
0:1,<br />
1:2,<br />
2:3<br />
],<br />
b:[oggetto #3],<br />
a:1<br />
},<br />
obj5:[oggetto #6, classe 'Array']<br />
}<br />
}</code><br />
ok, now remove all the code you just written and leave just this line:<br />
<code>var so:SharedObject = SharedObject.getLocal("flash8", "/");</code><br />
and see the variables list again, you will see this:<br />
<code>Variabile _level0.so = [oggetto #1, classe 'SharedObject'] {<br />
data:[oggetto #2, classe 'Object'] {<br />
obj1:[oggetto #3] {<br />
<root />;<br />
},<br />
obj2:[oggetto #4, classe 'Date'] {Sat Sep 22 19:31:31 GMT+0200 2007},<br />
obj3:[oggetto #5, classe 'Date'] {Sat Sep 22 19:31:31 GMT+0200 2007},<br />
obj4:[oggetto #6, classe 'Object'] {<br />
d:[oggetto #7, classe 'Date'] {Sat Sep 22 19:31:31 GMT+0200 2007},<br />
c:[oggetto #8, classe 'Array'] [<br />
0:1,<br />
1:2,<br />
2:3<br />
],<br />
b:[oggetto #6, classe 'Object'],<br />
a:1<br />
},<br />
obj5:non definito<br />
}<br />
}</code><br />
they are different! (both data.obj5 and data.obj4.b changed)</p>
<p>For what I understand during my experiments it seems that flash does not write into its internal references table the XML objects while reading back the file and so next time it open the sharedobject all the references after the xml are broken or just they point to a different object.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.sephiroth.it/2007/09/22/sharedobject-reader-plugin-for-fd3/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Flash Media Server 2 and ByteArray?</title>
		<link>https://blog.sephiroth.it/2006/06/30/flash-media-server-2-and-bytearray/</link>
					<comments>https://blog.sephiroth.it/2006/06/30/flash-media-server-2-and-bytearray/#comments</comments>
		
		<dc:creator><![CDATA[Alessandro Crugnola]]></dc:creator>
		<pubDate>Fri, 30 Jun 2006 16:58:33 +0000</pubDate>
				<category><![CDATA[flash media server]]></category>
		<category><![CDATA[bytearray]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[media server]]></category>
		<category><![CDATA[NetStream]]></category>
		<category><![CDATA[sharedobject]]></category>
		<guid isPermaLink="false">http://blog.sephiroth.it/?p=154</guid>

					<description><![CDATA[passing a bytearray to flash media server ?<br />
]]></description>
										<content:encoded><![CDATA[<p>I thought it was possible, using flex2/ActionScript3 new features, to send a <a href="http://livedocs.macromedia.com/flex/2/langref/flash/utils/ByteArray.html" target="_blank">ByteArray</a> object using the <a href="http://livedocs.macromedia.com/flex/2/langref/flash/net/NetStream.html#send()" target="_blank">NetStream.send</a> method, but it doesn&#8217;t seem to work.<br />
I&#8217;ve also tried to pass it in a remote sharedobject but that failed too 🙁</p>
<p><a title="flex2 language reference" href="http://livedocs.macromedia.com/flex/2/langref/index.html" target="_blank">Flex 2/AS3 lang ref</a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.sephiroth.it/2006/06/30/flash-media-server-2-and-bytearray/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
