Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

code doesn't work

Guest
Apr 29, 2013 Apr 29, 2013

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

}

}

TOPICS
ActionScript
387
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Apr 29, 2013 Apr 29, 2013

Did you click enter?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Apr 29, 2013 Apr 29, 2013

yes

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Apr 29, 2013 Apr 29, 2013
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines