milchisimas gracias!!
Código:
cntb++; if (cntb>dissolve) { if (this._alpha>0) { this._alpha-=0; } else { this.removeMovieClip(); } } else if ((cntb>resolve) || (realchb==' ')) { chb=realchb; } else if (cntb<=resolve) { chb=chr(65+random(26)); } /////////////// function genWordval() { var txval=0; var tyval=0; makeAutoFixingWordval(wordlistval[random(wordlistval.length)],txval,tyval, 15,15); } function makeAutoFixingWordval(dawordval, x, y, resolve, dissolve) { var kernval=0; for (n=0;n<dawordval.length;n++) { neoval="oneletterb"+String(depth++); this.attachMovie("ltrb",neoval,depth); this[neoval]._x=x + kernval; this[neoval]._y=y; this[neoval].realchb=dawordval.substr(n,1); this[neoval].chb=dawordval.substr(n,1); this[neoval].resolve=random(resolve); this[neoval].dissolve=resolve+dissolve+random(dissolve*2); kernval+=_global.letterSpacing; } return (x+kernval); } /////////////////// wordlistval = new Array(); vernacularval="HOLA"; wordlistval=vernacularval.split(' '); _global.letterSpacing = 12; genWordval(); stop();