# Shared object problem

**URL:** https://forum.kirupa.com/t/shared-object-problem/193373
**Category:** Uncategorized
**Created:** [July 12, 2006, 10:15pm UTC](https://forum.kirupa.com/t/shared-object-problem/193373 "2006-07-12T22:15:17Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![blazes](https://avatars.discourse-cdn.com/v4/letter/b/35a633/32.png) [@blazes](https://forum.kirupa.com/u/blazes)
#### Post date: [July 12, 2006, 10:15pm UTC](https://forum.kirupa.com/t/shared-object-problem/193373/1 "2006-07-12T22:15:17Z")

</div>

Hello. [www.blazes816.com/pics/SO.swf](http://www.blazes816.com/pics/SO.swf)  
theres a circle goin across the screen (it will be different don’t worry:sigh:)  
I have a shared object on it so it doesn’t play more than once. But when I refresh it will play again. I don’t want this. What can I do? Thanks.

make SO

```auto
played = SharedObject.getLocal("played");
played.data.played = "true";
played.flush();
trace(played.data.played);

```

Play if not set. stop if set.

```auto
if(played.data.played == "true") {
stop();
} else {
play();
}

```

-B8
