Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | Re: FLASH: Arrays to control random MCs |
From: | Laura Mollett |
Date: | Wed, 1 Mar 2000 03:03:26 GMT |
> You don't actually have to create a whole separate array... you can just use
> the current array of names of MCs to tell target and shuffle them.
> Say you have a set of variables, mc1, mc2, mc3, etc.. that are equal to the
> names of your MCs... (in the case of hair styles) mc1="/mullet", mc2="/perm"
> , mc3="/skater", etc
>
> Then you would use the following code to shuffle up the list.
>
> Set Variable: numMCs = 5
> Set Variable: numShuffles = 10
> Set Variable: count=1
> Loop While (count <= numShuffles)
> Set Variable: shuffle1 = (random(numMCs)+1)
> Set Variable: shuffle2= (random(numMCs)+1)
> Set Variable: temp = eval("mc"&shuffle1)
> Set Variable: "mc"&shuffle1 = eval("mc"&shuffle2)
> Set Variable: "mc"&shuffle2 = temp
> Set Variable: count = count+1
> End Loop
Ah so, instead of choosing a random mc each time you click the button, it
shuffles once and then plays them in whatever random order it generated?
Why'd you use 10 shuffles? Will this absolutely keep you from getting the
same clip twice? I see how it gives you a random, but couldn't you get the
order: 1, 5, 6, 1, 3 or 5, 2, 7, 6, 2? It stops you from getting the same
one twice in a row, but not for all 5 clips, right? Or does it? hmmm, I
don't think I understand this :) Can you explain?
Laura
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and The Flash Film Festival
"The World�s Premier Flash Solutions Conference and Expo"
March 27-29, Nob Hill Masonic Center, San Francisco, California
-Register before Feb 25 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpchinwag [dot] com
Replies
Re: FLASH: Arrays to control random MCs, Branden Hall
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]