Skip to main content
Participant
July 5, 2006
Answered

Flash cookies?? (Paying 5$)

  • July 5, 2006
  • 3 replies
  • 310 views
all i need is a script that will add a cookie when the page is loaded.

and check if the cookie exists before its added.

this is so when someone watches the header of my site it will only play once and when they click the next link it will not play the vid again.
This topic has been closed for replies.
Correct answer Craig Grummitt
have a look at SharedObject.
You can donate your $5 to a charity of your choice...

3 replies

Participant
July 5, 2006
thank you very much. donated it to redcross.
Craig Grummitt
Craig GrummittCorrect answer
Inspiring
July 5, 2006
have a look at SharedObject.
You can donate your $5 to a charity of your choice...
Inspiring
July 5, 2006
Getting a cookie called kookie:
// On a frame before all content
var my_so:SharedObject = SharedObject.getLocal("kookie");

if (my_so.data.introplayed != undefined) {
if( my_so.data.introplayed)
gotoAndStop("home"); else gotoAndStop("intro");
}
//On the first intro frame
my_so.data.introplayed= true;
my_so.flush();


--
Lon Hosford
www.lonhosford.com
Flash, Actionscript and Flash Media Server examples:
http://flashexamples.hosfordusa.com
May many happy bits flow your way!
"AntiSocialLord" <webforumsuser@macromedia.com> wrote in message
news:e8ffvo$lso$1@forums.macromedia.com...
> all i need is a script that will add a cookie when the page is loaded.
>
> and check if the cookie exists before its added.
>
> this is so when someone watches the header of my site it will only play
> once
> and when they click the next link it will not play the vid again.
>