Copy link to clipboard
Copied
I put the following code in AS3 but when I type in to the input the letter "a" it doesn't go to frame 3.
enter.addEventListener (MouseEvent.CLICK,NF);
function NF (event:MouseEvent) :void {
if (Ntext.text == "a") {
gotoAndStop(3);
}
else {
error.text = "X";
}
}
Copy link to clipboard
Copied
Did you click enter?
Copy link to clipboard
Copied
yes
Copy link to clipboard
Copied
What happens if you put a breakpoint in your function and step through the code?
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more