Question
Global Variables
Hi guys,
So here's the thing. I have a number of nested movie clips, 8 clips, each having 3. At the bottom of each, there is a common clip that is waiting to play when it sees the correct flag. But for whatever reason, Something as simple as:
onEnterFrame = function () {
if (_global.go == 2) {
gotoAndPlay(1);
}
};
Refuses to work. On the main stage, I have this:
_global.go = 0;
btn.onRelease = function() {
_global.go = 2;
};
This is just a stipped down verion of what I'm trying to do while I debug. WHAT am I doing wrong here?
Thanks~
So here's the thing. I have a number of nested movie clips, 8 clips, each having 3. At the bottom of each, there is a common clip that is waiting to play when it sees the correct flag. But for whatever reason, Something as simple as:
onEnterFrame = function () {
if (_global.go == 2) {
gotoAndPlay(1);
}
};
Refuses to work. On the main stage, I have this:
_global.go = 0;
btn.onRelease = function() {
_global.go = 2;
};
This is just a stipped down verion of what I'm trying to do while I debug. WHAT am I doing wrong here?
Thanks~