# Password fields..if then statements HELP PLEASE

**URL:** <https://forum.kirupa.com/t/password-fields-if-then-statements-help-please/46804>\
**Category:** Uncategorized\
**Created:** [March 28, 2004, 5:19am UTC](https://forum.kirupa.com/t/password-fields-if-then-statements-help-please/46804 "2004-03-28T05:19:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![UnblessedOmega](https://avatars.discourse-cdn.com/v4/letter/u/8edcca/32.png) [@UnblessedOmega](https://forum.kirupa.com/u/UnblessedOmega)\
**Post date:** [March 28, 2004, 5:19am UTC](https://forum.kirupa.com/t/password-fields-if-then-statements-help-please/46804/1 "2004-03-28T05:19:29Z")

</div>

HI!  
i am doing a password thingy like in the tutorial ([http://www.kirupa.com/developer/flash5/ifelse.htm](http://www.kirupa.com/developer/flash5/ifelse.htm)) and i was wondering if i could put 2 different sounds…one playing if access is granted, and the other one if it isnt…also…after access is granted…i want it to go to a certain url or to get a file…how do i do that???

[AS]password = inputName

if (password == “password”) {  
answer = “Access granted!” ;

} else {  
answer = “no!” ;  
}[/AS]
