flash arrays???
- Started
- Last post
- 11 Responses
- Dno
Hi All!
does anyone know how to change this script to play an array in order rather than randomly?
n = random(wordList.length);
I want the array to play in order and not randomly?
Any know what the random should be changed to please?
Fingers crossed...
- jpea0
couldn't you just make n = wordList.length ? the only thing that random does is pick a random number from all available items in wordList, so if it just starts at the beginning, you're set.
- Engage0
for n=1 to array.length is pretty much what you want to do?
- joyride0
yeah, it's pretty simple.
but what happens at the end?
with your current .as n is just a number.
when you play it in order eventually you'll reach the end of the array. you'll need to account for that. a simple if statement should work.var myNum:Number = 0;
n = myNum;
myNum ++;That will run the array from 0 - whatever.
- joyride0
oops, declare the var outside the function or whatever, or it will just keep playing 0. my bad
- Dno0
...using...
n = 0;
word = wordList[n];
// place the word object
nombre = "word"+String(depth++);
neo = this.attachMovie("mcWord", nombre, depth);
// set word
neo.setWord(word);
neo.fitInto(x0, y0, x1, y1, d);
}it jst plays the first word in the array...
- UndoUndo0
http://psatebin.se put yr code in their and post back the link
- joyride0
or here:
http://pastebin.se/
- jpea0
are you going for something like this : http://pastebin.coconut.se/?id=4…
- Dno0
- alloyd0
for(i=o;i