3 Replies Latest reply on Apr 29, 2014 6:34 AM by kglad

    Website question

    knuckles1409

      I have a simple website of 3 pages.

       

      1. a welkom page with some text and a button to go to the next page
      2. a page with a question with 3 options. The option you choose will automaticly send me the answer via mail.
      3. a page with some text and a link to facebook.

       

      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?

        • 1. Re: Website question
          kglad Adobe Community Professional & MVP

          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=...

          1 person found this helpful
          • 2. Re: Website question
            knuckles1409 Level 1

            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!

            • 3. Re: Website question
              kglad Adobe Community Professional & MVP

              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.