Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 88739

Re: Re: Can't get SharedObject to work..

$
0
0
Sorry, of course I meant this:

 

//The cookie

var store_stats:SharedObject = SharedObject.getLocal("store_stats")

 

stage.addEventListener(Event.ENTER_FRAME, flusher)

    function flusher (Evt:Event) {

        store_stats.data.player1stats = player1Score;

        store_stats.data.player2stats = player2Score;

        store_stats.flush();

    }

 

//Game stats

var nummer1:Number = 0;

var nummer2:Number = 0;

var player1Score = 0;

var player2Score = 0;

var isDeuce = false;

var isBattle = false

 

As the score variables change, they're not being saved in the store_stats. Any idea on what I can do to make it work?

Viewing all articles
Browse latest Browse all 88739

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>