title: Actionscript 3.0 SharedObject flush() problems
body: <p>First of all, I'm a total beginner, so sorry if the problem is obvious, yet I don't see it.</p>
  
  <p>Anyways, my problem is about SharedObject - when I try to write to disk with <code>flush()</code>, it throws out </p>
  
  <blockquote>
    <p>Error #2130: Unable to flush SharedObject.</p>
  </blockquote>
  
  <p>I've checked out similar problems throughout the web, but the problem persists for now. The code I'm trying to get working is</p>
  
  <pre><code>var time:int;
  var saveDataObject:SharedObject=SharedObject.getLocal("saveDataFile");
  
  if (saveDataObject.data.savedTime==null) {
      time=0;
      time=time+1;
      saveDataObject.data.savedTime=time;
  } else {
      time=saveDataObject.data.savedTime;
      time=time+1;
      saveDataObject.data.savedTime=time;
  }
  
  var timer:TextField = new TextField();
  addChild(timer);
  timer.defaultTextFormat=mainFormat;
  timer.embedFonts=true;
  timer.antiAliasType=AntiAliasType.ADVANCED;
  timer.text=String("Time launched:" +time);
  
  saveDataObject.flush();
  trace(saveDataObject.size);
  </code></pre>
  
  <p>Will really appreciate any help!</p>