1° FRAME
Código:
2° FRAME//PARAMETROS
fscommand ("fullscreen", "true");
fscommand ("allowscale", "true");
fscommand("trapallkeys","true"); //BLOQUEA ESC
//BLOQUEAR BOTON DERECHO
mi_menu = new ContextMenu();
mi_menu.hideBuiltInItems();
this.menu = mi_menu;
//VARIABLES
var cantidad_promociones;
var Promociones = new Array();
Código:
Archivo txtarchivo = new LoadVars();
archivo.onLoad = function(succes) {
if (succes){
cantidad_promociones = this.cantidad_promociones;
trace(cantidad_promociones);
estado_txt.text = "CONECTO!";
}else
estado_txt.text = "FALLO CONECCION";
};
archivo.load('cantidad.txt');
cantidad_promociones_txt.text = cantidad_promociones;
trace(cantidad_promociones);*/
stop();
Código:
El problema esta en que el trace de adentro del if... tiene el valor correcto pero el trace de afuera no lo tiene (undefined).cantidad_promociones=1
No logro hacer que le asigne a la variable el valor que lee del txt
Ya probe:
1 - Cambiar el nombre de las variables
2 - Usar _global



