Using SharedObjects : SharedObject : Development Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Development » SharedObject »

 

Using SharedObjects


 
package{
  import flash.display.Sprite;
  import flash.net.SharedObject;  
  public class Main extends Sprite{
    public function Main(){

        var hiscores:SharedObject = SharedObject.getLocal("hiscores");

        hiscores.data.highest = 999999;
        if (hiscores.data.scores){
            for (var i:int 0; i < hiscores.data.scores.length; i++){
                trace(i + ": "+ hiscores.data.scores[i]);
            }
        }
    }
  }
}

        



    Related Scripts with Example Source Code in same category :

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo Development
» SharedObject