I have a form where you must check the box so you can submit and then a mc (popup window) will show and dissappear after few seconds and then loads a different movie.
I only want to submit without needing to check the box. Please help me fix my code. Thank you. :stare:
popup._alpha = 0;
sec = 5;
//how long until delte
box.onRelease = function() {
this.checked = !this.checked;
this.checked ? (this.gotoAndStop(2), varName = "Your response to this acknowledgment will be tracked and logged within PeopleSoft.") : (this.gotoAndStop(1), varName = "");
};
sub.onPress = function() {
box.checked ? (trace("sent"), popup.onEnterFrame=showPop) : trace("Must agree");
};
function showPop() {
this._alpha<100 ? (this._alpha += 5, popup.tb="CONGRATULATIONS
YOU HAVE FINISHED THE ORIENTATION", delete sub.onPress) : (delete this.onEnterFrame, timDel=setInterval(function () {
popup.unloadMovie();
unloadMovieNum(2);
unloadMovieNum(3);
unloadMovieNum(14);
unloadMovieNum(15);
unloadMovieNum(16);
unloadMovieNum(18);
unloadMovieNum(20);
loadMovieNum("mainB.swf", 20);
loadMovieNum("menu6.swf", 16);
getURL("webform1.aspx?id=5&status=C","_self","GET");
clearInterval(timDel);
}, sec*800));
}