Flash Sound Cookie
- Started
- Last post
- 4 Responses
- -kappa-
I'm looking to have a sound file play once when the user arrives at a site, but then disable itself untill the user want to hear it again.
Similar to the NT welcome jingle. I think I'm going to have to use cookies.
anyone?
- UndoUndo0
LSO - Local Shared Object - a flash cookie
- -kappa-0
ok - so how can I write a quick script to check if the user has been to the site?
- -kappa-0
this is what i have at the moment...
myLocalSharedObject = sharedobject.getLocal("Cookie");
if (myLocalSharedObject.data.hitCou... == null) {
play();
}
else {
stop();
}
- UndoUndo0
create a buttoin that allows the users so set a variable to ture or false depending on whether they want to hear the sound.
Use the shared object to record this preferences,
check the shared object for the preference, if the preference is yes, play the sound