Skip to main content
April 29, 2013
Question

code doesn't work

  • April 29, 2013
  • 1 reply
  • 421 views

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";

}

}

This topic has been closed for replies.

1 reply

Amy Blankenship
Legend
April 29, 2013

Did you click enter?

April 29, 2013

yes

Amy Blankenship
Legend
April 29, 2013

What happens if you put a breakpoint in your function and step through the code?