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
system
April 3, 2003, 2:20pm
2
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
system
April 3, 2003, 2:29pm
3
system
April 3, 2003, 2:32pm
4
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]
system
April 3, 2003, 2:36pm
6
damm you kax! i didn´t see your post!!!
i got another link, but sen´s explanation is way better
http://www.kirupaforum.com/forums/showthread.php?s=&threadid=10061&highlight=global+variables
still love you anyways kax :love:
system
April 3, 2003, 2:42pm
7
Originally posted by Guig0
damm you kax! i didn´t see your post!!!
Originally posted by Guig0
i got another link, but sen´s explanation is way better
:sigh:
Originally posted by Guig0
still love you anyways kax :love:
:love: =)
[size=1]a smilie is worth more than a thousand words… ;)[/size]