¿Cómo convertir variables en números de serie en spss?
//Solo necesitas cambiar la cadena de esta variable vTxt para crear texto automáticamente
var vTxt: String = "Dios bendiga a China, unidos como uno";
// El bucle for genera procesamiento dinámico de cuadros de texto
//La longitud se procesa automáticamente de acuerdo con la variable vTxt
for (i=0; ilt; vTxt.length ; i) {
//Crear un clip de película en blanco
createEmptyMovieClip("myMouse" i, this.getNextHighestDepth());
//Crear un cuadro de texto
este["myMouse" i].createTextField("myTxt", this["myMouse" i].getNextHighestDepth(), 0, 0, 40, 40);
//id token
this["myMouse" i].id = i;
//Establece el tamaño de fuente del estilo: 15
var myformat: TextFormat = new TextFormat();
myformat.size = 15;
//Establecer contenido de texto
//Color aleatorio
this["myMouse" i].myTxt.text = vTxt .substr(i, 1);
this["myMouse" i].myTxt.textColor = Math.floor(Math.random()* 0xFF0000);
this[" myMouse" i].myTxt.setTextFormat(myformat);
//Inicializa las coordenadas raíz del videoclip
if (i != 0) {
este ["miMouse" i].onEnterFrame = function() {
this._x = (_root["miMouse" (this.id-1) ]._x 20-this._x)*0.5;
this._y = (_root["myMouse" (this.id-1)]._y-this._y)*0.5;
};
} else {
this["myMouse" i].onEnterFrame = function() {
//trace(this. _name);
this._x = (_root._xmouse-this._x 15)*0.5;
this._y = (_root._ymouse-this._y 15)*0.5 ;
};
}
}
//myMouse0.startDrag(true, 0, 0, Stage.width, Stage .altura);