Combined Code
movieClip 2 NextButton {
}
movieClip 5 Drip {
}
frame 1 {
var level = 0;
var finalFrame = 849;
var loopingArray = new Array();
loopingArray[0] = new Array(2, 208);
loopingArray[1] = new Array(209, 312);
loopingArray[2] = new Array(335, 355);
drip._visible = false;
this.onEnterFrame = function () {
if (this._currentframe == loopingArray[level][1]) {
this.gotoAndPlay(loopingArray[level][0]);
} else {
if (this._currentframe >= finalFrame) {
this.stop();
}
}
};
nextButton.onRelease = function () {
if (level < loopingArray.length) {
++level;
} else {
if (_root._currentframe >= finalFrame) {
drip._visible = true;
level = 0;
_root.gotoAndPlay(2);
}
}
};
}