dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Help! Loading random movie clips from an array

Hybrid View

  1. #1
    Member
    Join Date
    Jul 2004
    Location
    New Haven, CT
    Posts
    79

    Help! Loading random movie clips from an array

    Looking for an array guru here... Can you help?!

    My project has about 30 movie clips in the library. With an action that comes up every few seconds, I'd like to randomly load one of those 30 clips onto the stage and have it play until it's done.

    BUT - once a movie clip is already out, I don't want it to reset or come out again. I'd like the next action to randomly call out one of the remaining 29 clips.

    Once each movie clip is done, I need some action to make it go back to the "available" list so that it can be called out again.

    I'm guessing that I need to use attachMovie to call out the movie clips, and an array (maybe two) to make sure that I only get one instance of each movie clip. But after lots of searching and various dead ends, I'm just not finding exactly what is needed.

    Can you help?? I'm on a very tight project timeline, so could really use some specific code.

    Thank you!

  2. #2
    Member
    Join Date
    Jul 2004
    Location
    New Haven, CT
    Posts
    79
    One more note... instead of launching from the library, it would also be fine if all of the movie clips are out on the stage. Whichever is easier!

  3. #3
    Member
    Join Date
    Jul 2004
    Location
    New Haven, CT
    Posts
    79
    Nevermind... switched to attachMovie with a random launch and am skipping the array.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center