bcogswell11
June 11th, 2002, 08:10 PM
Sorry guys, this will be my last question for awhile because I fear I might be wearing out my welcome... I am having trouble with a variable in a movie clip. How do you get the movie to recognize a variable contained within a clip? Also, what is wrong with the dot notation in the code below? It jumps to the main movie's timeline and not the clip... Thanks!
NOTE: The "_root:content" is where I am trying to figure out how to get the variable from the clip to be recognized by the whole movie. The "_root.mctextbox" line is where something is wrong with my dot notation. The movieclip is contained on a layer in the main timeline.
on (release) {
mover = 1;
if (_root:content == 1) {
gotoAndPlay("_root.mctextbox", 12);
}
if (_root:content == 2) {
gotoAndPlay("_root.mctextbox", 35);
}
if (_root:content == 3) {
gotoAndPlay("_root.mctextbox", 54);
}
if (_root:content == 4) {
gotoAndPlay("_root.mctextbox", 70);
}
}
-brad-
NOTE: The "_root:content" is where I am trying to figure out how to get the variable from the clip to be recognized by the whole movie. The "_root.mctextbox" line is where something is wrong with my dot notation. The movieclip is contained on a layer in the main timeline.
on (release) {
mover = 1;
if (_root:content == 1) {
gotoAndPlay("_root.mctextbox", 12);
}
if (_root:content == 2) {
gotoAndPlay("_root.mctextbox", 35);
}
if (_root:content == 3) {
gotoAndPlay("_root.mctextbox", 54);
}
if (_root:content == 4) {
gotoAndPlay("_root.mctextbox", 70);
}
}
-brad-