title: What is the simplest way to randomise the order of frames in AS3 without repeats?
body: <p>I have a scene in a flash project where I want the order of the frames to be randomised at run-time. I want each frame to be shown exactly once. I want the duration of each presentation to be constant.</p>
  
  <p>I've been playing around with a couple of David Stiller's suggestions:</p>
  
  <ul>
  <li><a href="http://www.quip.net/blog/2006/flash/how-to-jump-random-frame-label" rel="nofollow">How to Jump to a Random Frame Label</a></li>
  <li><a href="http://www.quip.net/blog/2007/flash/how-to-jump-randomly-to-frame-labels-without-repeats" rel="nofollow">How to Jump Randomly to Frame Labels without Repeats</a></li>
  </ul>
  
  <p>They're a bit outdated (<code>Void</code> rather than <code>void</code>, <code>this._totalframes - 1</code> rather than <code>MovieClip.totalFrames</code>), but the principal seems sound.</p>
  
  <p>Still, the approach seems less than optimal. David's examples work really well for a small number of sequences of frames. But I have around 100 individual frames.</p>
  
  <p>What is the best way to do this?</p>
  
  <p>My wishlist:</p>
  
  <ol>
  <li>No need to label each frame individually</li>
  <li>Ideally, no need to repeat code on each frame</li>
  <li>Easy to change the duration of each frame presention</li>
  </ol>
  
  <p>I'm not experience in Flash, so I be asking for something obviously impossible, but I'd be interested to see suggestions about how best to proceed.</p>