milohound
01-11-2002, 01:30 AM
I have a simple but annoying problem.. I have 8 buttons each buttons plays a mc. each mc has a begining and an end (end is a fade out), so when a button is pressed it loads the corresponding mc, the mc plays until it reach a stop action in the middle of the timeline. What i need to do is: When another button is pressed it first plays the fade section of the current mc on screen, then plays the mc associated with the button just pressed, and so on throught the 8 buttons. Obviously each button can be pressed randomly. It will work with 2 buttons but on the third it has no effect. heres an example:
on (release) {
with (_root.servicewin2.print) {//print is the mc for the button
gotoAndPlay (2);
if (playing==0) {
gotoAndPlay (2);
} else if (playing==1) {
gotoAndStop (8);
}
with (_root.servicewin2.presentation) {//presentation is another mc which could be playing
if (playing==1) {
gotoAndPlay (11);
with (_root.servicewin2webdesigntxt) {//webdesign.txt is another mc which could be playing
if (playing==1) {
gotoAndPlay (8);//presentation will go and play the required frame but webdesign.txt won`t or vice verca.
}
}
}
}
}
}
any help will be much appreciated there must be a simpler way than this!!!
on (release) {
with (_root.servicewin2.print) {//print is the mc for the button
gotoAndPlay (2);
if (playing==0) {
gotoAndPlay (2);
} else if (playing==1) {
gotoAndStop (8);
}
with (_root.servicewin2.presentation) {//presentation is another mc which could be playing
if (playing==1) {
gotoAndPlay (11);
with (_root.servicewin2webdesigntxt) {//webdesign.txt is another mc which could be playing
if (playing==1) {
gotoAndPlay (8);//presentation will go and play the required frame but webdesign.txt won`t or vice verca.
}
}
}
}
}
}
any help will be much appreciated there must be a simpler way than this!!!