| Refresh | Home EGTry.com

shared object file location and size limits


Version tested: flash player 10.1

location of shared file in window xp: SharedObject.getLocal("flexlog", "/")

url file location
http://localhost/... C:\Documents and Settings\sg0899398\Application Data\Macromedia\Flash Player\#SharedObjects\B5A6P4SP\localhost\flexlog.sol
http://www.egtry.com/... C:\Documents and Settings\sg0899398\Application Data\Macromedia\Flash Player\#SharedObjects\B5A6P4SP\www.egtry.com\localhost\flexlog.sol

Users allow more than 100k size limit of a shared object

storage popup

sample code to create an shared object

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="onComplete()"  layout="absolute">
	<mx:Script>
		<![CDATA[
			
			private function onComplete():void {
				var so:SharedObject=SharedObject.getLocal("flexlog", "/");
				var buff:String="A line of text data\n";
				so.data.field1=buff;
				so.flush();
			}
			
		]]>
	</mx:Script>
</mx:Application>