# Cookies Flash MX

**URL:** <https://forum.kirupa.com/t/cookies-flash-mx/42485>\
**Category:** programming\
**Created:** [February 9, 2004, 8:50pm UTC](https://forum.kirupa.com/t/cookies-flash-mx/42485 "2004-02-09T20:50:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rlLife](https://avatars.discourse-cdn.com/v4/letter/r/eb8c5e/32.png) [@rlLife](https://forum.kirupa.com/u/rlLife)\
**Post date:** [February 9, 2004, 8:50pm UTC](https://forum.kirupa.com/t/cookies-flash-mx/42485/1 "2004-02-09T20:50:24Z")

</div>

I am trying to make a flash movie so that when the vistor goes to the site a swf opens level 1. This is on my home page. But if they search around in the site and then go back to the home page i dont want that swf to open again.

So i am trying to find out how I could make some sort of cookie that will tell the swf to load only one time per session.

Is that possible/hard to do? The link below shows what i am talking about. on the site i am building there is a video in the bottom middle that plays as soon as the page opens. That is the same video that i want to not play after it has played once.

[http://199.89.251.226/axis](http://199.89.251.226/axis)

---

<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:** [February 9, 2004, 9:50pm UTC](https://forum.kirupa.com/t/cookies-flash-mx/42485/2 "2004-02-09T21:50:01Z")

</div>

if you want to show other flash content, you don’t even need cookis, all you need is shared objects (“flash cookies”), check/read it in at the beginning of intro, if there is none, it gets created first time, so next time, using an if(sharedObject is there), display other swf…

---

<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:** [February 9, 2004, 10:08pm UTC](https://forum.kirupa.com/t/cookies-flash-mx/42485/3 "2004-02-09T22:08:03Z")

</div>

i was looking into that, does that still hold even if the viewer is going to go to a different page. I guess what i am asking is, will that work until the viewer closes their browser, and can i set it up so the next time they open their browser the file will load again. I think it will be hard to do just because what i have going on now is about 30 swf files are in a folder. Each time the viewer hits the main page a random 1 out of the 30 will appear.  
Do you think it is possible to keep my random swf and also use the sharedObject ?

thanks a ton

rL

---

<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:** [February 11, 2004, 9:18am UTC](https://forum.kirupa.com/t/cookies-flash-mx/42485/4 "2004-02-11T09:18:25Z")

</div>

Of course.  
You can write any info you want to the SO, so 1st run =\> visited=yes, then each one after: randomArray=\>add the current one to coose another on next run (if array.length\<total n° of random swf’s).  
Read up all you can find about S.O., try, post back…  
SO remain on the users comp as long as you want (no date, like normal coookies).
