title: How can I randomize a picture under a cover in actionscript 3.0?
body: <p>I'm making a flash game for practice and I have my stage set up so there are 9 boxes. When the game is started, one of the boxes is randomized as the one with the start underneath, if you pick the box with the star underneath, you win.</p>
  
  <p>The randomizing code is</p>
  
  <pre><code>var star = 1 + Math.Round(Math.Random()*8.0)//generate a number between 1 and 9
  </code></pre>
  
  <p>What i dont know is how to attach this code so that it assigns the star to one of my 9 boxes made as buttons. How can I hide the star underneath the box as a cover.
  Thanks for your time</p>