# \[MX\] Those pesky Shared Objects

**URL:** <https://forum.kirupa.com/t/mx-those-pesky-shared-objects/96938>\
**Category:** Uncategorized\
**Created:** [December 15, 2003, 6:08pm UTC](https://forum.kirupa.com/t/mx-those-pesky-shared-objects/96938 "2003-12-15T18:08:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lrhb](https://avatars.discourse-cdn.com/v4/letter/l/e47774/32.png) [@lrhb](https://forum.kirupa.com/u/lrhb)\
**Post date:** [December 15, 2003, 6:08pm UTC](https://forum.kirupa.com/t/mx-those-pesky-shared-objects/96938/1 "2003-12-15T18:08:32Z")

</div>

Hello all!

Here is my situnario:

I am trying to pass some variables from one movie to another… I wish for them to act like a well coordinated quarterback and receiver and score a touchdown, but I think instead they have both decided to play Mechagodzilla and lay to waste all that is before them.

The user inputs some information, and it is saved to a shared object. My code goes something like this:

The Quarterback:  
[AS]  
mySOL = SharedObject.getLocal(“solData”, “/beFriends”);  
mySOL.data.searchType = searchType;  
mySOL.data.zip = zip;  
mySOL.data.city = city;  
mySOL.data.state = state;  
mySOL.flush();  
[/AS]

The Receiver:  
[AS]  
function openCookie() {  
mySOL = SharedObject.getLocal(“solData”, “/beFriends”);  
state = mySOL.data.state;  
city = mySOL.data.city;  
zip = mySOL.data.zip;  
trace(state);  
trace(city);  
trace(zip);  
}  
[/AS]

The result of my trace statements are as follows: undefined, undefined, undefined. for those who don’t know, in Japanese, ‘undefined’ means ‘buildings laid to waste my angry super monster’ which is how I know they are playing Mechagodzilla.

Your advice is welcomed with open arms!

Thanks in advanced,

lrhb :hat:
