# SharedObject how do i?

**URL:** https://forum.kirupa.com/t/sharedobject-how-do-i/284504
**Category:** flash
**Created:** [March 19, 2009, 6:42pm UTC](https://forum.kirupa.com/t/sharedobject-how-do-i/284504 "2009-03-19T18:42:57Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![uni](https://avatars.discourse-cdn.com/v4/letter/u/9d8465/32.png) [@uni](https://forum.kirupa.com/u/uni)
#### Post date: [March 19, 2009, 6:42pm UTC](https://forum.kirupa.com/t/sharedobject-how-do-i/284504/1 "2009-03-19T18:42:57Z")

</div>

[LEFT]hello there, I have made a little flash with music player.  
my problem is, when I load each page on my site the music start fro, the begging.  
I understand that I need to use the SharedObject method.

I read about it and I’m don’t understanding what should I do… or how to work with this method…

some one can help me…  
I just need to save my current length of the song by sherdobject.

this is my code

```auto
var my_sound:Sound = new Sound();
my_sound.loadSound("sound.mp3", true);
my_sound.setVolume(70);

skip_sound = SharedObject.getLocal("userData"); 
if (skip_sound.data.skip) {
     //some statements skipping 
variableName = skip_sound.data.variableName;
my_sound.start(variableName);
}
this.onEnterFrame = function(){
 skip_sound.data.variableName= my_sound.position;
      intro_so.flush();
 
}

```

[/LEFT]
