private var mySharedObject : SharedObject;
private function readSharedObject() : void
{
var sampleData1 : String = "data1";
mySharedObject = SharedObject.getLocal( "myData" );
if ( mySharedObject.data.someData1 == undefined ) {
mySharedObject.data.someData1 = sampleData1;
mySharedObject.flush();
status.text += "mySharedObject data after assignment: " + mySharedObject.data.someData1 + "\n\n";
} else {
status.text += "mySharedObject already written to: " + mySharedObject.data.someData1 + "\n";
}
}