_global. help

Hi,
I’m new to actionscript and I am having trouble with the _global command. I have a script within a movie clip that is supposed to define _global.firstload on release of said movie clip.

 
on (release) {
_root.gotoAndPlay(39);
_global.firstload = "info";
}

For some reason _global.firstload = “info” does not seem to set the global variable, or atleast in root. The _root.gotoAndPlay(39) works so I know the on(release) is working. I don’t recieve an error in output about _global.firstload = “info”, but when I used trace(_global.firstload), the variable comes out to be undefined. Im trying to use this in conjunction with:

_root.contents.loadMovie(_global.firstload+".swf");

Is there something wrong with the script or does _global not effect root while used within a movie clip? Thanks.

in my experiences _global has always been buggy. just use _root.

Just changed it to:

 
on (release) {
 _root.gotoAndPlay(39);
 _root.firstload = "info";
}


But trace(_root.firstload) still comes out to be undefined.:sigh:

can you post your fla. file somewhere?

Anyone know a good place to upload the fla to? The fla file is too big for my hosting.

try having the move to the _global. before the gotoAndPlay. It’s worth a shot.