# Flash 8, Actionscript, Password help, please

**URL:** <https://forum.kirupa.com/t/flash-8-actionscript-password-help-please/195761>\
**Category:** flash\
**Created:** [August 2, 2006, 10:07pm UTC](https://forum.kirupa.com/t/flash-8-actionscript-password-help-please/195761 "2006-08-02T22:07:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RobotSuit](https://avatars.discourse-cdn.com/v4/letter/r/b5ac83/32.png) [@RobotSuit](https://forum.kirupa.com/u/RobotSuit)\
**Post date:** [August 2, 2006, 10:07pm UTC](https://forum.kirupa.com/t/flash-8-actionscript-password-help-please/195761/1 "2006-08-02T22:07:37Z")

</div>

Hello! I was very excited to see that the password tutorial on the main site worked, unfortunatly, I encountered a problem that is seriously frustrating me.

Using this code:

> password = inputName

if (password == “Password”) {  
answer = gotoAndPlay(Cover);  
} else {  
answer = “Access denied!” ;  
}

It won’t play Cover, instead, the text field disappears along with the “Enter Password,” yet the button stays. I’m not sure if there’s something wrong with my code or not, please help! D:

Thanks in advance.
