# Password AS problem

**URL:** <https://forum.kirupa.com/t/password-as-problem/33508>\
**Category:** flash\
**Created:** [October 20, 2003, 2:34pm UTC](https://forum.kirupa.com/t/password-as-problem/33508 "2003-10-20T14:34:00Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![robbie\_star](https://avatars.discourse-cdn.com/v4/letter/r/ee7513/32.png) [@robbie\_star](https://forum.kirupa.com/u/robbie_star)\
**Post date:** [October 20, 2003, 2:34pm UTC](https://forum.kirupa.com/t/password-as-problem/33508/1 "2003-10-20T14:34:00Z")

</div>

Hi guys

Could you please look at the AS for this password box as it does not work. The reason it does not work is that i need some one to alter the AS because it used to have a username text box in it aswell as the password box for it to work. But i only want the password box.

Could someone be kind enough to alter the AS so that it will work with just the password box. Imnot very good when it comes to AS.

Thanks Guys:bu:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 20, 2003, 5:39pm UTC](https://forum.kirupa.com/t/password-as-problem/33508/2 "2003-10-20T17:39:11Z")

</div>

Hey guys

Is this a hard thread for some one to HELP me with!!!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 20, 2003, 6:01pm UTC](https://forum.kirupa.com/t/password-as-problem/33508/3 "2003-10-20T18:01:50Z")

</div>

Hey Robbie, there’s a tute concerning passwords here at Kirupa. Did you check it?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 20, 2003, 6:36pm UTC](https://forum.kirupa.com/t/password-as-problem/33508/4 "2003-10-20T18:36:20Z")

</div>

Hi Ilyas i checked the tuts out but what i have is really what i want its just that i removed the username box and now i need to alter the AS so that it will work just with a Password box.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 20, 2003, 6:51pm UTC](https://forum.kirupa.com/t/password-as-problem/33508/5 "2003-10-20T18:51:17Z")

</div>

I don’t have flash on this comp so I was unable to view the fla and hence, dont know the code. Forgive me if I am being redundant.

```auto
if(_root.pwd.text!="desired password"){
      dialogbox.text="Wrong Password. Try Again."
      pwd.text = ""
}

```

Where pwd is an instance name of an input textbox with Password as the property (instead of Single Line or Multi).

Put a Stage.showMenu = 0 so the user cannot play past the password screen.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 20, 2003, 7:06pm UTC](https://forum.kirupa.com/t/password-as-problem/33508/6 "2003-10-20T19:06:01Z")

</div>

Hi steveo when u get a chance have a look at the fla and u will understand a bit more where im lost. Im no good with AS so what you have written its hard for me to insert and get it to work.

Thanks

P.S how does the stage.showmenu = 0 so that the user cannot play WORK? also where would i insert that AS.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 20, 2003, 8:24pm UTC](https://forum.kirupa.com/t/password-as-problem/33508/7 "2003-10-20T20:24:27Z")

</div>

robbie,

try this on your button:  
[AS]on (press) {  
if (password == “password”) {  
gotoAndStop(16);  
} else {  
gotoAndPlay(3);  
password ="";  
}  
}[/AS]

scotty:)
