Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | FLASH: delete vars from a list |
From: | Tewes |
Date: | Thu, 17 Feb 2000 11:26:21 GMT |
Hi folks,
this is my problem. Basically I�m trying to learn about randomizing. This is
what I did so far:
I have 10 MCs on the stage. I want to make four of them randomizely visible.
The first thing I do is setting them all invisible:
=> first frame (where "Sichtbarkeit" is the german expression for
visibility)
Set Variable: "i" = 1
Loop While (i<=10)
Set Property ("zahl_"&i, Sichtbarkeit) = false
Set Variable: "i" = i+1
End Loop
Next: I create a list of ten variables and give each of the variables as a
value the name of one of my MCs:
=> second frame
Set Variable: "i" = 1
Loop While (i<=10)
Set Variable: "rd_"&i = "zahl_"&i
Set Variable: "i" = i+1
End Loop
Now the "randomizer":
=> third frame:
Set Variable: "i" = 1
Loop While (i<=4)
Set Variable: "random" = Random (10)+1
Set Property (eval("rd_"&random), Sichtbarkeit) = 1
Set Variable: "i" = i+1
End Loop
Everything works fine - but now my problem: how can I avoid that one number
is chosen twice, or even three times in the random-function. Means I get
1-1-5-6, or 1-2-1-1? My idea is to delete on variable from the var.-list.
But how can I achieve this? Any ideas? May be anytutorials about this
topic??
Thanks in advance
Kalle
----------------
Kalle Tewes
dpa-Online Grafik
Tel. 040 / 4113 - 2134
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
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]