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.