PDA

View Full Version : Problem with SharedObjects


Frank_Pons
12-22-2004, 12:01 PM
i have this problem with sharedobject. i can save it locally when i test my movie but when i upload it to my server it doesn't save the sharedobject...

i use


mySO = SharedObject.getLocal("swap"+String(_global.thispage),"/")
mySO.data.dataToSave = "blablabla"
mySO.data.dataToSave2 = "blablabla"
etc...


i found a similar code somewhere here in the forums and like i said it works fine when i load the file locally but from the internet it doesn't work
anyone got a solution

Laguana
12-22-2004, 12:13 PM
Have you looked on your computer where the shared objects are stored to see if it's there?

it'll be something like c:/windows/profiles/(your name)/application data/macromedia/shared objects/(your website's name)/
if you use windows, and if you don't, i don't know where it'd be. probably whatever your equivalent of that is :P

Also, what makes you think it doesn't work? It's not saving variables or something?

Frank_Pons
12-22-2004, 12:54 PM
yes i checked... when i do ctrl+enter to test my movie i get a sol file in c:/windows/profiles/(your name)/application data/macromedia/shared objects/localhost/
for each step i make i create a new sol file so i get swap1.sol,swap2.sol..etc

but when i load the file from my server i get c:/windows/profiles/(your name)/application data/macromedia/shared objects/www.myadres.nl/

and no sol files are created

nu_foo
12-22-2004, 01:39 PM
have you checked to see what the storage settings are for your(www.myadres.nl) domain? -- right click on the movie -- settings>storage settings

also, check the global storage settings - havent looked for a while, but do a search on the macromedia site, and there is a page there to set storage for *all* domains....

hth

PBH

farafiro
12-22-2004, 01:50 PM
post the full code u r using for storing and calling the data

Frank_Pons
12-22-2004, 02:14 PM
code to save:
mySO = SharedObject.getLocal("swap"+String(_global.thispage),"/")
mySO.data.dataToSave = _root.movieContainer.voorletters_txt.text;
mySO.flush()

code to get values:

mySO = SharedObject.getLocal("swap"+String(_global.thispage),"/")
if (not (mySO.data.dataToSave == undifined))
_root.movieContainer.voorletters_txt.text = mySO.data.dataToSave;


this works fine in localhost (flash MX) but not for www.myadres.nl with a browser (ie and firefox)

farafiro
12-23-2004, 05:38 AM
it should work fine
empty your cashe and try again

watahel
01-04-2005, 02:52 AM
beside the SharedObject file been saved in [ c:/windows/profiles/(your name)/application data/macromedia/shared objects/(your website's name)/ ]
Can we locate the path of the SO file, maybe to C: or D: or A: or any other path? please help.

Laguana
01-04-2005, 04:54 AM
If you mean can you choose where your shared object is saved, then the answer is no, you can't. The shared objects are always stored at that style of path (depending on the operating system) in the user's profile. The only change you can make is whether it is stored under yourwebsite/yourswf/ or just yourwebsite/