SFS seems not to like SharedObject.getLocal

Post here your questions about Actionscript and Java server side extensions development.

Moderators: Lapo, Bax

Post Reply
Nelagend
Posts: 9
Joined: 08 Aug 2010, 18:09

SFS seems not to like SharedObject.getLocal

Post by Nelagend »

I'm using ActionScript 3, and I'm at the point in my game development where I want to start saving stuff to the disk. In previous single player games, I used a SharedObject.getLocal function command to make a save file containing high scores, etc. Well, I tried to do this in my server side extension, and SFS tells me it has no idea what a SharedObject is.

Is there a way to tell SFS what a SharedObject is, or am I supposed to be using *shudders* an external database for server side file storing?

var acc1data = SharedObject.getLocal("acc1data");

is the crashing line. I originally used a variable named temp instead of the text string, but went to the string just to make sure it wasn't a problem of variables being disallowed for file names.
BigFIsh
Posts: 1698
Joined: 25 Feb 2008, 19:26
Location: New Zealand

Post by BigFIsh »

Actionscript extension for serverside is AS1.

What are you trying to do exactly? Do you want to create a file to store all highscore information on serverside?

It would be better to store highscore information in the database for the ease of sorting etc.
Smartfox's forum is my daily newspaper.
Post Reply