Skip to main content
April 25, 2009
Answered

Password Help

  • April 25, 2009
  • 1 reply
  • 352 views

I have an Input Text with the instance name of "input", and a button scripted like this:

on(press){

if(_root.input == "password"){

_root.play();

}

}

I want to make it so if "password" is typed into "input" and the button is pressed, the timeline will play.  For some reason, the actionscript above isn't working.  Help would be much appreciated. 

This topic has been closed for replies.
Correct answer Ned Murphy

You need to specify the "text" property of the input text field

on(press){

if(_root.input.text == "password"){

_root.play();

}

}

1 reply

Ned Murphy
Ned MurphyCorrect answer
Legend
April 25, 2009

You need to specify the "text" property of the input text field

on(press){

if(_root.input.text == "password"){

_root.play();

}

}