3 Replies Latest reply on Jan 31, 2007 5:40 PM by Newsgroup_User

    global variable does not work

    Listat Level 1
      Hi, I'm trying to set the content of a global variable but it does not work; this is the code:

      //Declaracion de variables y constantes
      var carga_variables = new LoadVars(); //Objeto para cargar variables desde el archivo "concepto.txt"
      _global.lista_conceptos = new Array();
      //*******************************Funciones***************************
      carga_variables.onLoad = function(ok){
      if (ok) {
      _global.lista_conceptos = carga_variables.archivos.split(",");
      trace(_global.lista_conceptos[0]);
      }
      };
      //**************************llamadas a las funciones*************
      carga_variables.load("concepto.txt");
      trace(carga_variables);

      Just the trace sentence in if sentence works and the last one not, why?
      Tnks.