WhiteTiger
Programmer
I'm using the tell target command (Yes, obselete soon)...to play certian parts of an MC which I have made...it is just a test for when I do the work I'm doing...
I currently have 4 buttons, and 1 MC (MC TESTS)
the MC has an animation 14 frames long w/ a keyframe in front of it w/ a stop, and with all the information frames in the middle with stops, and an animation at the end with a stop keyframe after that.
Currently, on the page load, I have (WHAT I THINK) the page set the property "Opening = False;" with no other code.
In one of the buttons (None others becaues it's not working yet) I have this code...
on (release) {
Opening = 1
if (Opening == False);
tellTarget ("_root.MC TEST" {
gotoAndPlay (2);
Section = 1;
}
if (Opening == True);
tellTarget ("_root.MC TEST" {
gotoAndStop (15);
}
}
But with that code, when I push the button, it goes to frame 15, (My first info page), without playing the animation before it...and when I put Opening = False RIGHT IN FRONT OF THAT STUFF, it still goes DIRECTLY to frame 15...am I setting the Opening variable wrong, or what?...is there a way to have a global variable that can be accessed by everything?
I currently have 4 buttons, and 1 MC (MC TESTS)
the MC has an animation 14 frames long w/ a keyframe in front of it w/ a stop, and with all the information frames in the middle with stops, and an animation at the end with a stop keyframe after that.
Currently, on the page load, I have (WHAT I THINK) the page set the property "Opening = False;" with no other code.
In one of the buttons (None others becaues it's not working yet) I have this code...
on (release) {
Opening = 1
if (Opening == False);
tellTarget ("_root.MC TEST" {
gotoAndPlay (2);
Section = 1;
}
if (Opening == True);
tellTarget ("_root.MC TEST" {
gotoAndStop (15);
}
}
But with that code, when I push the button, it goes to frame 15, (My first info page), without playing the animation before it...and when I put Opening = False RIGHT IN FRONT OF THAT STUFF, it still goes DIRECTLY to frame 15...am I setting the Opening variable wrong, or what?...is there a way to have a global variable that can be accessed by everything?