Ver Mensaje Individual
  #1 (permalink)  
Antiguo 12/03/2008, 08:56
kaquna
 
Fecha de Ingreso: agosto-2007
Mensajes: 130
Antigüedad: 16 años, 8 meses
Puntos: 0
de flash6 a flash8

alguien sabe por que este codigo funciona en flash6 y NO en flash8?

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();