Flash Script – Random Text Letter Effect


type = 'application/x-shockwave-flash'
data = 'http://sitepointstatic.com/flash/randomtext.swf'
width = '400'
height = '400'
bgcolor = 'black'
>

Building this effect is simple! Download the sample files here.

1. First, create a text field. In this case, I gave it a variable name of "shuffle".

2. Convert the textfield to a movie clip, and name it "Random".

3. Right click the movie clip and go to its actions. Insert the following code:

onClipEvent (enterFrame)  
{
shuffle = chr(random(25)+65);
}

4. Create duplicates of the movie clip.

That’s it! Run the movie, and you’ll see the effect above.

Free book: Jump Start HTML5 Basics

Grab a free copy of one our latest ebooks! Packed with hints and tips on HTML5's most powerful new features.

No Reader comments

Comments on this post are closed.