# How was this done

**URL:** <https://forum.kirupa.com/t/how-was-this-done/56546>\
**Category:** Uncategorized\
**Created:** [July 5, 2004, 5:41pm UTC](https://forum.kirupa.com/t/how-was-this-done/56546 "2004-07-05T17:41:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![firstSteps](https://avatars.discourse-cdn.com/v4/letter/f/b487fb/32.png) [@firstSteps](https://forum.kirupa.com/u/firstSteps)\
**Post date:** [July 5, 2004, 5:41pm UTC](https://forum.kirupa.com/t/how-was-this-done/56546/1 "2004-07-05T17:41:26Z")

</div>

Hi can anyone explain to me how this text effect was done.  
[http://www.thanea.com/ars/](http://www.thanea.com/ars/)

when you click on 1 of the nav buttons the text will change at the botton of the site.  
how is this done and are there any tuts on this effect ?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 6, 2004, 10:01am UTC](https://forum.kirupa.com/t/how-was-this-done/56546/2 "2004-07-06T10:01:12Z")

</div>

Simply set up an array of sentences, and change your text with an interval:

```auto
mySentences = ["bla", "blabla", "blibli"] ;
this.createTextField ("tf", 0, 0, 0, 0, 0, 0) ; // there might too many 0 there...
tf.autoSize = true ;
function fillText () {
    tf.text = mySentences[random (mySentences.length)] ;
} ;
pID = setInterval (fillText, 100) ;

```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 6, 2004, 3:59pm UTC](https://forum.kirupa.com/t/how-was-this-done/56546/3 "2004-07-06T15:59:54Z")

</div>

Hi Ilyas le C®eek  
thanks for your answer it has helped a lot but … 🙂  
this is the code i am using but it’s not working and even if it did im not sure how to change the text or stop the text on the work i want  
//---------------------------------------------------  
myString = “This is a string of ActionScript poetry words”;  
words = myString.split(" ");

for(var i = 0; i \< words.length; i++){  
word\_mc = \_root.createEmptyMovieClip(“word” + i, i);  
word\_mc.createTextField(“word\_txt”, 1, 0, 0, 0, 0);  
word\_mc.word\_txt.autoSize = true;  
word\_mc.word\_txt.border = true;  
word\_mc.word\_txt.background = true;  
word\_mc.word\_txt.text = words\*  
}  
wx = word\_mc.\_width;  
wy = word\_mc.\_height;  
word\_mc.\_x = wx;  
word\_mc.\_y = wy;
