Frame 1
function genWord() {
var _local2 = _global;
var _local1 = 600 / _local2.letterSpacing;
var tx = ((random(Math.ceil(_local1)) * _local2.letterSpacing) + (_local1 / 2));
var _local3 = (random(Math.ceil(_local1 * 0.6183)) * _local2.letterSpacing) + (_local1 / 2);
makeAutoFixingWord(wordlist[random(wordlist.length)], tx, _local3, 40, 40);
}
function makeAutoFixingWord(daword, x, y, resolve, dissolve) {
var _local1 = this;
var _local3 = daword;
var _local2 = 0;
n = 0;
while (n < _local3.length) {
neo = "oneletter" + String(depth++);
_local1.attachMovie("ltr", neo, depth);
_local1[neo]._x = x + _local2;
_local1[neo]._y = y;
_local1[neo].realch = _local3.substr(n, 1);
_local1[neo].ch = _local3.substr(n, 1);
_local1[neo].resolve = random(resolve);
_local1[neo].dissolve = (resolve + dissolve) + random(dissolve * 2);
_local2 = _local2 + _global.letterSpacing;
n++;
}
return(x + _local2);
}
function makeFloatingWord(daword, x, y) {
var _local1 = this;
var _local3 = 100;
var _local2 = 0;
oldneo = null;
n = 0;
while (n < daword.length) {
neo = "ltrclone" + String(depth++);
_local1.attachMovie("ltrfloat", neo, depth);
_local1[neo].x = x + _local2;
_local1[neo].y = y;
_local1[neo]._x = ((x + _local2) + random(_local3)) - (_local3 / 2);
_local1[neo]._y = (y + random(_local3)) - (_local3 / 2);
_local1[neo]._alpha = 0;
_local1[neo].ch = daword.substr(n, 1);
bounds = new Object();
bounds = _local1[neo].getBounds();
_local2 = _local2 + ((bounds.xMax - bounds.xMin) * 0.8);
n++;
}
}
wordlist = new Array();
vernacular = "VANESSA VANESSA VANESSA MELHOR MELHOR AMIGA AMIGA EU EU AMO-TE AMO-TE <3 ";
wordlist = vernacular.split(" ");
_global.letterSpacing = 19;
genInterval = setInterval(this, "genWord", 300);
stop();
Symbol 4 Button
on (press) {
cnt = 0;
resolve = resolve + 100;
}
Symbol 5 MovieClip [ltr] Frame 1
cnt++;
if (cnt > dissolve) {
if (this._alpha > 0) {
this._alpha = this._alpha - 5;
} else {
this.removeMovieClip();
}
} else if ((cnt > resolve) || (realch == " ")) {
ch = realch;
} else if (cnt <= resolve) {
ch = chr(97 + random(26));
}
Symbol 5 MovieClip [ltr] Frame 2
gotoAndPlay(_currentframe - 1);
Symbol 7 MovieClip [ltrfloat] Frame 1
there = true;
if (Math.abs(this._x - this.x) > 0.2) {
vx = vx + ((this.x - this._x) / 50);
there = false;
}
if (Math.abs(this._y - this.y) > 0.2) {
vy = vy + ((this.y - this._y) / 50);
there = false;
}
this._alpha = this._alpha + ((100 - this._alpha) / 30);
vx = vx * 0.95;
vy = vy * 0.95;
this._x = this._x + vx;
this._y = this._y + vy;
if (there) {
_alpha = 100;
stop();
}
Symbol 7 MovieClip [ltrfloat] Frame 2
gotoAndPlay(_currentframe - 1);