Skip to main content
March 24, 2008
Question

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

  • March 24, 2008
  • 1 reply
  • 226 views
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.



This topic has been closed for replies.

1 reply

Inspiring
March 24, 2008
_global.popID = id(234);

--
Dave -
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/


Known Participant
January 6, 2010

Hi I was wondering if you could help with my problem?

The thread is here http://forums.adobe.com/thread/550715?tstart=0

I'm trying to out put a global var(i think)

Any help is greatly appreciated.