# Space age random generated text before revealing real text?

**URL:** https://forum.kirupa.com/t/space-age-random-generated-text-before-revealing-real-text/275477
**Category:** flash
**Created:** [November 14, 2008, 5:02am UTC](https://forum.kirupa.com/t/space-age-random-generated-text-before-revealing-real-text/275477 "2008-11-14T05:02:35Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![flaz](https://avatars.discourse-cdn.com/v4/letter/f/f04885/32.png) [@flaz](https://forum.kirupa.com/u/flaz)
#### Post date: [November 14, 2008, 5:02am UTC](https://forum.kirupa.com/t/space-age-random-generated-text-before-revealing-real-text/275477/1 "2008-11-14T05:02:35Z")

</div>

How is this done?

[http://www.rodec.com/site/content/home.asp](http://www.rodec.com/site/content/home.asp)

See how the text comes in as random generated text before revealing the real text. Its like that matrix or space aged thing happening.

Here are some code that I found, but don’t know how to modify it to do this:

```auto
var str:String = " What is the answer";

var sInt = setInterval(writeIt,1);
var count:Number = 0;
var s:Sound = new Sound();
s.attachSound("type");

function writeIt() {
	if(count == 0) {
		s.start(0,1000);
	}
	theText.text = str.substring(0,count);
	count += 5;
	if(count > str.length) {
		clearInterval(sInt);
		s.stop();
	}
}

```

I don’t mind how this is setup though, it looks pretty straight forward, it just doesn’t do that random generated text to reveal teh real text.
