title: Generate falling random object to choose from in the array
body: <p>I'm trying to create a game like Tap Tap except the falling objects are randomized. What I'm having problems with right now is if the randomized object got pick again(before it finish moving), It's position would be reset.(this also means two same object won't appear in the screen which I don't want) I figured out a way to solve this is I should be able to create a copy of the movieclip picked but I'm lost. Help? </p>
  
  <p>Also, I'm new to flash. If you have suggestions/advice please tell me! 
  Thank you and have a good day.</p>
  
  <pre><code>var notes:Array = new Array(NGood1,NGood2,NGood3,NGood4,NGood5,NBad1,NBad2,NBad3,NBad4,NBad5);
  
  var pos1:int;
  var pos2:int;
  var pos3:int;
  
  pos1 = (stage.stageWidth / 3) -100;
  pos2 = (stage.stageWidth / 2) -100;
  pos3 = ((stage.stageWidth/3) *2) -100;
  
  var timerN:Timer = new Timer(1000,120);
  timerN.addEventListener(TimerEvent.TIMER, timerhandler);
  timerN.start();
  
  var secondsN:Number = 1;
  
  function timerhandler(event:TimerEvent)
  {
      //trace("Seconds elapsed: " + seconds);
      SpawnNote(null);
      secondsN++;
  
  }
  
  
  function SpawnNote(event:Event):void
  {
      var spawn:int;
      var rpos:int;
      spawn = int(Math.random() * notes.length);
      rpos = int(Math.random() * 3) + 1;
      var note:MovieClip = new MovieClip();
      note = notes[spawn];
      addChild(note);
      if (rpos ==1)
      {
          note.x = pos1;
  
      }
      else if (rpos==2)
      {
          note.x = pos2;
  
      }
      else if (rpos==3)
      {
          note.x = pos3;
  
      }
      note.y = -20;
      note.addEventListener( Event.ENTER_FRAME, MoveNote );
      function MoveNote(event:Event):void
      {
          note.y +=  5;
          if (note.y &gt;= stage.stageHeight - 50)
          {
              note.addEventListener( Event.ENTER_FRAME, StopNote );
              function StopNote(event:Event):void
              {
                  note.removeEventListener( Event.ENTER_FRAME, MoveNote );
                  //do more
              }
          }
      }
  }
  </code></pre>