title: AS3 sharedObject - How to load my last sharedObject on a btnCLICK
body: <p>I'm bumbling my way through AS3 I have come back to the idea of wanting to be able to load my last save from a sharedObject. Any help would be appreciated as i'm still a novice to AS3.
  I'm also wanting to attach it to a load btn. </p>
  
  <pre><code>// SAVE FUNCTIONS ---------------------------------------
  //---------------------------------------------------
  //---------------------------------------------------
  
  var mySO:SharedObject = SharedObject.getLocal("iDesign");
  
  bones_mc.x = mySO.data.my_x;
  bones_mc.y = mySO.data.my_y;
  
  if (!mySO.data.my_y) {
  bones_mc.x = 424;
  bones_mc.y = 119;
  }
  
  //---- THIS IS THE SAVER BTN
  save_btn.addEventListener (MouseEvent.CLICK, clickersave);
  
  function clickersave (e:MouseEvent):void {
  mySO.data.my_x = bones_mc.x;
  mySO.data.my_y = bones_mc.y;
  mySO.data.mybut_x = btrfly_mc.x;
  mySO.data.mybut_y = btrfly_mc.y;
  mySO.data.mytig_x = tiger_mc.x;
  mySO.data.mytig_y = tiger_mc.y; 
  mySO.data.mybow_x = pink_bow_mc.x;
  mySO.data.mybow_y = pink_bow_mc.y;      
  mySO.flush ();
  }
  //----
  bones_mc.buttonMode=true;
  
  btrfly_mc.x = mySO.data.mybut_x;
  btrfly_mc.y = mySO.data.mybut_y;
  
  if (!mySO.data.mybut_y) {
  btrfly_mc.x = 112;
  btrfly_mc.y = 295;
  }
  
  btrfly_mc.buttonMode=true;
  
  tiger_mc.x = mySO.data.mytig_x;
  tiger_mc.y = mySO.data.mytig_y;
  
  if (!mySO.data.mytig_y) {
  tiger_mc.x = 804;
  tiger_mc.y = 411;
  }
  
  tiger_mc.buttonMode=true;
  
  pink_bow_mc.x = mySO.data.mybow_x;
  pink_bow_mc.y = mySO.data.mybow_y;
  
  if (!mySO.data.mybow_y) {
  pink_bow_mc.x = 923;
  pink_bow_mc.y = 579;
  }
  
  load_btn.addEventListener (MouseEvent.CLICK, loadlast);
  
  function loadlast (e:MouseEvent):void {
  bones_mc.x = mySO.data.my_x; 
  bones_mc.y = mySO.data.my_y
  //mySO.data.mybut_x = btrfly_mc.x;
  //mySO.data.mybut_y = btrfly_mc.y;
  //mySO.data.mytig_x = tiger_mc.x;
  //mySO.data.mytig_y = tiger_mc.y;   
  //mySO.data.mybow_x = pink_bow_mc.x;
  //mySO.data.mybow_y = pink_bow_mc.y;        
  mySO.flush ();
  }
  </code></pre>