Dilemma: I have six inverted tabs which drop from the top of the screen, all movie clips, named T1 through T5. When the button embedded in any one of these is clicked, it lowers itself (the whole tab)and then calls a function in the parent that moves the parent movie to another frame and raises the tab that is currently lowered.
Here's the code:
Button:
on (release) {
play (); //Tab goes down
with (_root.AllTabs) { //AllTabs is the parent
gotoAndStop (10);
}
_parent.raiseTab(); //call function
}
Function:
function raiseTab () {
for (i=1; i<6; i++) {
selectMov = "T"+i;
if (selectMov._currentframe == 44 ) {
selectMov.play();
}
}
}
I am trying to cycle through the tab clips, testing each one for whether or not it is currently down (at frame 44). Somehow, though, Flash is not understanding the instance names. When I debug selectMov always ends up being T5, but none of the movies ever changes.
Any clues?
Tom K.
Here's the code:
Button:
on (release) {
play (); //Tab goes down
with (_root.AllTabs) { //AllTabs is the parent
gotoAndStop (10);
}
_parent.raiseTab(); //call function
}
Function:
function raiseTab () {
for (i=1; i<6; i++) {
selectMov = "T"+i;
if (selectMov._currentframe == 44 ) {
selectMov.play();
}
}
}
I am trying to cycle through the tab clips, testing each one for whether or not it is currently down (at frame 44). Somehow, though, Flash is not understanding the instance names. When I debug selectMov always ends up being T5, but none of the movies ever changes.
Any clues?
Tom K.