Parapal Design Flash

A A A Text size

Actionscript source code and FLA files

Random Letters text effect.

 

Download text effect fla files

Main timeline script

effectArr = new Array();
effectTxt = _root.effect.text;
effectlength = _root.effect.text.length;
timer = 0;
count = 0;
for (i=0; i<effectlength; i++) {
effectArr.push(effectTxt.slice(i, i+1));
}
_root.onEnterFrame = function() {
timer++;
if (timer == 4) {
count++;
timer = 0;
}
_root.effect.text = effectTxt.slice(0, count);
range = count+3;
if (range>effectlength) {
range = effectlength-1;
}
for (i=count; i<range; i++) {
randEff = Math.round(Math.random()*26)+97;
// Math.round(Math.random()*20);
if (effectArr[i] != " ") {
_root.effect.text += String.fromCharCode(randEff);
// (effectArr[i].charCodeAt(0)+randEff);
} else {
_root.effect.text += " ";
}
}
if (_root.effectText.length>_root.effectlength) {
trace(effectText.length);
_root.effectText = _root.effectText.slice(0, _root.effectlength);
trace(effectText.length);
}
};