1 Reply Latest reply on Aug 23, 2010 5:28 AM by Ned Murphy

    How do I create a simple "prize draw" program?


      Hey, I'd like to create a simple "prize draw" program

      that randomly selects a name (or number) from a list of names, I'd like it to be my own custom version. For a programmer this is probably the easiest thing but I'm new to programming (beginner), don't eve know if I'm in the right subcategory (flash). Is there a tutorial or something somewhere that you guys think could help me out, please?

        • 1. Re: How do I create a simple "prize draw" program?
          Ned Murphy Adobe Community Professional & MVP

          Create the list as an array and use the Math methods to randomly pick one of the values from the array.


          var prizeArray = new Array("name1","name2");


          var drawnPrize = prizeArray[Math.floor(Math.random()*prizeArray.length)];




          If you don't know if you should be using Flash, then you probably don't want to be looking for help until you figure out what you intend to do for your custom design.