Copy link to clipboard
Copied
I have a simple website of 3 pages.
Is it posible that flash remember that i already answerd the question and that is not posible that someone reolad the page and answer the question more than 1 time?
Copy link to clipboard
Copied
yes.
the easiest way to do that is to use a sharedobject.
var so:SharedObject=SharedObject.getLocal("yourwebsite","/");
if(so.data.answer1){
//skip the questions page
} else {
//display the questions page
}
..
.
//when questions are answered/emailed:
so.data.answer1=...
so.data.answer2=...
so.data.answer3=...
Copy link to clipboard
Copied
Your answer helpt very well! perfect!
I have a next question. Is there a posibility that you can make a var that you can save online. The result wil be that i dont have to get all the mail trafic and that i can login on my site with username and password and than look how many people answer the question and witch andwers how many times is given.
Thx!
Copy link to clipboard
Copied
to save data on your server you'll need to use server-side script (eg, php). flash can communicate with php using the LoadVars class.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now