Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

load random text in dynamic textbox

Status
Not open for further replies.

Guest_imported

New member
Joined
Jan 1, 1970
Messages
0
I want my dynamic textbox, called scrollBox, to randomly load one of 5 text files (file1.txt, file2.txt etc) each time the flash file is opened...
Any ideas?
 
Use an array to hold the 5 or so files...
When loading the text file, use random() before you load the corresponding file in the array.
Or simply generate a random number added to the text+?.txt
before opening the file with the loadVariables action.
mywink.gif
ldnewbie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top