jefargrafx
Instructor
how to you format this statement, I have an anray that get set a variable and I'd like to use that variable in a goto statement but I don't know how to format it.
myArray = [];
for(i=1;i<25;i++) {
myArray.push("page_" + (1 + i));
if (frameLabel == "intro") {
gotoAndStop("page_1");
}
}
shifted = myArray.shift();
trace(shifted);
for(i=0;i<myArray.length;i++) {
if(y==x) {
gotoAndStop(shifted);
}
}
if(y!=x) {
_root.page_MC.nextFrame();
}
Shifted = page_2....how do I get the statement to read page_2
been at it since 4:00am any ideas
jef
myArray = [];
for(i=1;i<25;i++) {
myArray.push("page_" + (1 + i));
if (frameLabel == "intro") {
gotoAndStop("page_1");
}
}
shifted = myArray.shift();
trace(shifted);
for(i=0;i<myArray.length;i++) {
if(y==x) {
gotoAndStop(shifted);
}
}
if(y!=x) {
_root.page_MC.nextFrame();
}
Shifted = page_2....how do I get the statement to read page_2
been at it since 4:00am any ideas
jef