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.
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…
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 ?
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).
Creating engaging and entertaining content for designers and developers since 1998.