# Password problems

**URL:** <https://forum.kirupa.com/t/password-problems/38855>\
**Category:** flash\
**Created:** [December 30, 2003, 8:11pm UTC](https://forum.kirupa.com/t/password-problems/38855 "2003-12-30T20:11:33Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![elion](https://avatars.discourse-cdn.com/v4/letter/e/4491bb/32.png) [@elion](https://forum.kirupa.com/u/elion)\
**Post date:** [December 30, 2003, 8:11pm UTC](https://forum.kirupa.com/t/password-problems/38855/1 "2003-12-30T20:11:33Z")

</div>

I was looking at the password tutorial here, but it doesn’t let me do exactly what I want to happen. I want the password to control the frame the movie goes to rather then text being displayed elsewhere. If the password is incorrect, I want it to go to a frame, whereas if it’s correct, I want it to go to a different frame when a button is pressed, like in the tutorial. :puzzle:

---

<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:** [December 30, 2003, 8:14pm UTC](https://forum.kirupa.com/t/password-problems/38855/2 "2003-12-30T20:14:18Z")

</div>

```auto
gotoAndStop(frame)

```

?

---

<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:** [December 30, 2003, 8:17pm UTC](https://forum.kirupa.com/t/password-problems/38855/3 "2003-12-30T20:17:48Z")

</div>

Well I know that, but I need it to go to a certain frame depending on whats in the input 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:** [December 30, 2003, 8:19pm UTC](https://forum.kirupa.com/t/password-problems/38855/4 "2003-12-30T20:19:59Z")

</div>

Can you show the code you have?

---

<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:** [December 30, 2003, 8:23pm UTC](https://forum.kirupa.com/t/password-problems/38855/5 "2003-12-30T20:23:51Z")

</div>

Well, THIS is the code from the tutorial. Any variations I try to make really dont work \>\_\<

[AS]password = inputName

if (password == “kirupa”) {  
inputStatus = “Access granted!” ;  
} else {  
inputStatus = “Access denied!” ;  
}[/AS]

Theres then a button that goes to a specific frame and displays either of these messeges, but this is NOT what I want, and I cant figure out how to do it the way I want it to work, as stated above. :hangover:

---

<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:** [December 30, 2003, 8:24pm UTC](https://forum.kirupa.com/t/password-problems/38855/6 "2003-12-30T20:24:34Z")

</div>

Can you show me the link to the tutorial?

---

<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:** [December 30, 2003, 8:25pm UTC](https://forum.kirupa.com/t/password-problems/38855/7 "2003-12-30T20:25:41Z")

</div>

[http://www.kirupa.com/developer/flash5/ifelse.htm](http://www.kirupa.com/developer/flash5/ifelse.htm)

---

<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:** [December 30, 2003, 8:30pm UTC](https://forum.kirupa.com/t/password-problems/38855/8 "2003-12-30T20:30:07Z")

</div>

Replace the code on the button located in the first frame:

```auto
on (release) {
	password = inputName;
	if (password == "kirupa") {
		gotoAndStop(frame);
	} else {
		gotoAndStop(frame);
	}
}

```

---

<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:** [December 30, 2003, 8:38pm UTC](https://forum.kirupa.com/t/password-problems/38855/9 "2003-12-30T20:38:51Z")

</div>

I tried that, but how does it activate then? O.o

Wait, hold on \>\_\<

Aha, I got it! Thanks! 🍺

---

<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:** [December 30, 2003, 8:50pm UTC](https://forum.kirupa.com/t/password-problems/38855/10 "2003-12-30T20:50:13Z")

</div>

:beam:
