If you call the function form within a movie clip let’s say, and your dynamic textfield is on _root… it could appear fine in the dynamic text on the _root… but the “id” variable wouldn’t trace fine in another MC… because you should call it as _root.id.
or try this.
<param name=“flashvars” value=“id=1”>
Prefixing the “id” variable with “_root.” worked… which means, I suppose, that I was having a problem with the scope of the variable.
I really appreciate your efforts to help me out… I think I better break out the book on this if I don’t even know why my variable wasn’t globally accessible!
was globally accessible… but globally doesn’t mean that :). I was thinking that too before I learned.
You can have 2 global variables… lets say var1 in _root. and var1 in _root.mc
both ar global. You can reffer them from anywhere you want in that scene but you must provide a path.
Local variables are in functions for example. To define a local variable you must preced it with “var”. var var1;
I just learned it myself a couple of days ago