# Shared object

**URL:** <https://forum.kirupa.com/t/shared-object/169425>\
**Category:** Uncategorized\
**Created:** [November 16, 2005, 8:23am UTC](https://forum.kirupa.com/t/shared-object/169425 "2005-11-16T08:23:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![offshore](https://avatars.discourse-cdn.com/v4/letter/o/a88e57/32.png) [@offshore](https://forum.kirupa.com/u/offshore)\
**Post date:** [November 16, 2005, 8:23am UTC](https://forum.kirupa.com/t/shared-object/169425/1 "2005-11-16T08:23:25Z")

</div>

Hi there,

I need to check whether a shared object exists or not. If it exists then the user is taken to another frame.

I’m using this at the moment

[AS]  
if (user\_so.data.fromCountry != null && user\_so.data.fromCountry.length != 0)  
{  
gotoAndPlay(2);  
}  
[/AS]

When the movie starts up the user selects there country which is a value ie. 1,2,3… which is written into the shared object.

When they restart the movie,they should go straight to frame 2  
for some reason the movie just displays nothing… the components are all gone(on frame 2)

When I trace the shared object in flash I get the value but as soon as its browser based… its a no go…

Any ideas?

Thanx
