Global variables

Global variables dont seem to work for my application. Am I doing something wrong? If yes, what would you recommend?

I have onEnterFrame functions in the _root and in a symbol. I want to pass data back and forth between the two functions. How can I do this?
thanks a lot!!
-Parker

Just have a variable being called inside of the movie… and then call the variable like this _root.variable = 0;

Anywhere in the movie… That way it knows where the variable will be located at.

playamarz :slight_smile:

http://www.kirupaforum.com/forums/showthread.php?s=&threadid=17389 =)

playa, you can set global variables too.

it is something like this (At least concearning the flash 5 version(don´t now if it changed in FMX)):

Global variables are variables that can be set or retrieved at any point anywere.

[AS]Object.prototype.yourGlobalVariable = value;[/AS]

blink… Hmm… lol Cool

playamarz :cool:

damm you kax! i didn´t see your post!!!

i got another link, but sen´s explanation is way better :wink:

http://www.kirupaforum.com/forums/showthread.php?s=&threadid=10061&highlight=global+variables

still love you anyways kax :love:

Originally posted by Guig0
damm you kax! i didn´t see your post!!!

:frowning:

Originally posted by Guig0
i got another link, but sen´s explanation is way better :wink:

:sigh:

Originally posted by Guig0
still love you anyways kax :love:

:love: =)

:stuck_out_tongue: :stuck_out_tongue: :stuck_out_tongue:
[size=1]a smilie is worth more than a thousand words… ;)[/size]