var input="" on (keyPress "8"){ if ( input.length<2 ) { input += "8" } else { input="" gotoAndStop ("f1"); } }