2 Replies Latest reply on Jan 6, 2010 7:35 AM by Sprogleg

    How can I return a global variabl..help plz.

    combustion007 Level 1
      Hello Everyone,

      I would highly appreciate it if someone can help me understand how I can send a value to global variable. Here is the scenario:

      Lets say I have an AS file which starts something like this:

      Line 1:
      _global.popId = null;

      onLine 3000 of code, I would like to pass a value from a function to popId:

      function id(p)
      {
      popId = p;
      return p;
      }

      I am calling the function here:

      id(234);

      Appreciate all the help.

      Thanks a lot.