Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

gotoAndStop at a variable

Status
Not open for further replies.

jefargrafx

Instructor
May 24, 2001
273
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top