# Flash text cloud (kind of)

**URL:** <https://forum.kirupa.com/t/flash-text-cloud-kind-of/247995>\
**Category:** Uncategorized\
**Created:** [January 2, 2008, 4:46pm UTC](https://forum.kirupa.com/t/flash-text-cloud-kind-of/247995 "2008-01-02T16:46:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhikumar](https://avatars.discourse-cdn.com/v4/letter/a/67e7ee/32.png) [@abhikumar](https://forum.kirupa.com/u/abhikumar)\
**Post date:** [January 2, 2008, 4:46pm UTC](https://forum.kirupa.com/t/flash-text-cloud-kind-of/247995/1 "2008-01-02T16:46:43Z")

</div>

here is how im trying to load a text file:

loadText = new LoadVars();  
loadText.load(“[http://www.tenbyten.org/Data/Now/words.txt](http://www.tenbyten.org/Data/Now/words.txt)”);  
loadText.onLoad = function() {  
news\_txt.text = this;  
};

words.txt has text arranged like this:  
iraq  
killed  
military  
american  
…  
…  
news\_txt should contain some random words from the text file (which is external and i can’t edit it)-- so is there anyway i can import random lines from the file. right now, the news\_txt displays (iraq0Akilled0Amilitary0Aamerican…) i want duplicate movie clips of news\_txt to display one word each from this file (randomly). please help.
