I am creating a computer game with a save game function which outputs the contents of an array to a shared object, so that users don’t loose their place.
However, I wish for this to work with multiple users, and realise that to do this I need a new seperate “folder” within the shared object being created for each new users data array.
I know it must be something like…
// Define the shared object using a “sublevel” for each users data array…
_root.savegame.sublevel = sharedobject.getLocal(“savegame”; “/”);
// somehow dynamically change “sublevel” to the contents of the var “currentUser” as defined when the user logs in when the game loads up.
OR…
Should I be doing this?..
//Define the shared object but using a variable title for the actual SO…
_root.savegame = sharedobject.getLocal(“savegame_currentUser”, “/”);
//with that “currentUser” being dynamically substituted for the contents of the var “currentUser” which is defined when the User logs in when the game loads up.
(This is vexxing me somewhat… are either of these possible or is there an alternative?)
Help appreciated greatly.
I was trying to avoid going external to flash for this, hoping it could pretty much all run from the CD with no actual install process… but for the scale of the game it is looking more and more like I should be installing files to the client machine, so using php isn’t such a no-no any longer…
I will look into it (as I have never used php before) and see if I can get my head around it. I guess I should be able to do it that way.
flash has a security restriction. so it cant access anything from disk. you need another tech for that. php is good only for serverside. and you dont expect user to install apache and php so you can store the game. macromedia has another product for cd based content. i think director. i dont know its capabilities. you can try that.