Hmm… Was that a wierd title?
Well, I’m making a program that has to write random names to the screen.
I’m loading the names from an external .txt-file called nameDataFile.txt
The .txt-file contains this:
name1="Mike Hanson"&name2="Josh Turner"&name3="Kim Nielson"
I have made a dynamic textbox with the value _root.shownName
This is my script:
loadVariablesNum(“nameDataFile.txt”, 0);
nameCount = 3;
nameRand = Math.floor(Math.random() * nameCount + 1);
_root.shownName = “_root.name” + nameRand;
What do I do wrong?