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

who can help me with this, line function ... is not correct

New Here ,
Jul 14, 2013 Jul 14, 2013

stop();

enter_btn.addEventListener(MouseEvent.CLICK, subClick);

failed_txt.background = false;

failed_txt.border = false;

var myName:String;

var myPass:String;

function subClick(event:MouseEvent):void{

          myName=name_txt.text;

          myPass=pass_txt.text;

    if(myName=="111111" && myPass =="22222.1"){

                    gotoAndStop("hidden");

    } else {

          failed_txt.text = "Graag een geldig passsword.";

    }

TOPICS
ActionScript
631
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
LEGEND ,
Jul 14, 2013 Jul 14, 2013

The only thing wrong with what you show is that the function is missing an ending curly brace.

If you are getting some error message include the error message in your posting

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
New Here ,
Jul 16, 2013 Jul 16, 2013

its working now

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
Community Expert ,
Jul 14, 2013 Jul 14, 2013

what's the problem?

if you think myName and myPass should be correct (use the trace function to confirm), make sure the textfield's are single line and NOT html enabled and kerning is disabled.  then trace the those variables length.

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
New Here ,
Jul 16, 2013 Jul 16, 2013
LATEST

its working now

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