Skip to main content
Participating Frequently
July 14, 2013
Question

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

  • July 14, 2013
  • 2 replies
  • 654 views

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

    }

This topic has been closed for replies.

2 replies

kglad
Community Expert
Community Expert
July 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.

Participating Frequently
July 16, 2013

its working now

Ned Murphy
Legend
July 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

Participating Frequently
July 16, 2013

its working now