# \[FMX\] Flash cookies and SharedObjects

**URL:** https://forum.kirupa.com/t/fmx-flash-cookies-and-sharedobjects/20193
**Category:** flash
**Created:** [May 6, 2003, 9:45am UTC](https://forum.kirupa.com/t/fmx-flash-cookies-and-sharedobjects/20193 "2003-05-06T09:45:32Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![El\_Phantom](https://avatars.discourse-cdn.com/v4/letter/e/d6d6ee/32.png) [@El\_Phantom](https://forum.kirupa.com/u/El_Phantom)
#### Post date: [May 6, 2003, 9:45am UTC](https://forum.kirupa.com/t/fmx-flash-cookies-and-sharedobjects/20193/1 "2003-05-06T09:45:32Z")

</div>

So I did the tutorial about SharedObjects, and I created a login movie which works fine.

## My questions are as follows:

Can i use a shared object I created in one movie (call it “mycookie”) in a separate movie on another page, similar to an HTML cookie? If so, what is the syntax?

I tried reusing the mycookie = SharedObject.getLocal(“user\_profile”)  
and it didn’t seem to work. =(

## Also, I know that alternatively I can pass flash variables to the URL with the POST method, but I forget the syntax.

Time is of the essence here (project due tomorrow) so I’d really like some help if somebody knows the answer…

Thanks,

–EP:(

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [May 6, 2003, 10:45pm UTC](https://forum.kirupa.com/t/fmx-flash-cookies-and-sharedobjects/20193/2 "2003-05-06T22:45:25Z")

</div>

you can change the path for your SO from the default, which is on a “per swf” basis (each swf saves it’s SO into it’s own folder in your site folder by default, check windows/application data/macromedia/flash player/ (hidden folder) ); beware, any SO with the same name from another swf will overwrite existing ones from different swf’s!  
so, to use your main folder for all:  
myStuffToSave=SharedObject.getLocal(“stuff”, “/”);  
notice the added path parameter, you can also use a folder name…

getURL (“http:yoursitehere?param1=this&param2=that&etc…”);

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [May 7, 2003, 9:49am UTC](https://forum.kirupa.com/t/fmx-flash-cookies-and-sharedobjects/20193/3 "2003-05-07T09:49:19Z")

</div>

ended up doing it the long way around, using .send to append the URL, and parsing from there. UGH.

good to know the better way,

thanks eyez,

–EP

P.S. I think those flash cookies are f’n cool…
