# Help I want to know how to make a password protected layer is this posible?

**URL:** <https://forum.kirupa.com/t/help-i-want-to-know-how-to-make-a-password-protected-layer-is-this-posible/57250>\
**Category:** flash\
**Created:** [July 11, 2004, 8:28pm UTC](https://forum.kirupa.com/t/help-i-want-to-know-how-to-make-a-password-protected-layer-is-this-posible/57250 "2004-07-11T20:28:17Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![my\_portal](https://avatars.discourse-cdn.com/v4/letter/m/e495f1/32.png) [@my\_portal](https://forum.kirupa.com/u/my_portal)\
**Post date:** [July 11, 2004, 8:28pm UTC](https://forum.kirupa.com/t/help-i-want-to-know-how-to-make-a-password-protected-layer-is-this-posible/57250/1 "2004-07-11T20:28:17Z")

</div>

Help I want to know how to make a password protected layer is this posible?  
if it is please tell me because i want to put a link back to my site on a open sorce flash on my site witch they can download and put on there site i really need too! (ps your tuts help me alot!)

---

<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:** [July 11, 2004, 9:02pm UTC](https://forum.kirupa.com/t/help-i-want-to-know-how-to-make-a-password-protected-layer-is-this-posible/57250/2 "2004-07-11T21:02:47Z")

</div>

Yeh using if statements you can get whatever you want to happen depending on the input in the field:

[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:** [July 11, 2004, 11:09pm UTC](https://forum.kirupa.com/t/help-i-want-to-know-how-to-make-a-password-protected-layer-is-this-posible/57250/3 "2004-07-11T23:09:28Z")

</div>

Make a dynamic text box.

Then give it the variable **pwInput**.

On the button, have this code:

```auto
on (release) {
    if (pwInput == "PasswordHere") {
       gotoAndPlay("2");
    } else {
       gotoAndPlay("3");
    }
}

```

**Explanation:**

When the button is pressed, it checks if _pwInput_ is equal to whatever password you want (replace with PasswordHere).

If it _is_ the password you put, it goes to and plays frame 2, you can make it stop at this frame, or have it go somewhere else that shows that access is granted.

If the password is _not_ what you put, it goes to and plays frame 3, you can make it stop at this frame, or have it go somewhere else that shows that access was denied.

You can change everything to your liking. This is the same thing as what Insomniac provided, just shorter :P.

Hope it helps,  
Sharif.

---

<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:** [July 12, 2004, 12:42am UTC](https://forum.kirupa.com/t/help-i-want-to-know-how-to-make-a-password-protected-layer-is-this-posible/57250/4 "2004-07-12T00:42:53Z")

</div>

Well you gotta love that! I wish someone would shorten all the answers to my problems! 😛 Nice one Reefster

---

<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:** [July 12, 2004, 12:47am UTC](https://forum.kirupa.com/t/help-i-want-to-know-how-to-make-a-password-protected-layer-is-this-posible/57250/5 "2004-07-12T00:47:05Z")

</div>

Lol - sorry I just felt like typing. Didn’t mean to steal your spotlight :ne:.

---

<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:** [July 12, 2004, 9:38am UTC](https://forum.kirupa.com/t/help-i-want-to-know-how-to-make-a-password-protected-layer-is-this-posible/57250/6 "2004-07-12T09:38:29Z")

</div>

Hey no sorry I didn’t mean it like that - I seriously meant that I would appreciate it if someone did that when I had a problem 😉 it’s cool that you helped out 🙂

---

<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:** [July 12, 2004, 3:00pm UTC](https://forum.kirupa.com/t/help-i-want-to-know-how-to-make-a-password-protected-layer-is-this-posible/57250/7 "2004-07-12T15:00:22Z")

</div>

Oh alright :). Hopefully I can always shorten problems :P.

–

BTW - Did the password actionscript work?

---

<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:** [July 12, 2004, 3:20pm UTC](https://forum.kirupa.com/t/help-i-want-to-know-how-to-make-a-password-protected-layer-is-this-posible/57250/8 "2004-07-12T15:20:02Z")

</div>

no no no i think i worded it wrong let me put it differenty

i want to make a full website on flash and then i wont to give it a way as free ware meaning i want to put a link on it but i dont want any one to access the “Powered By My Portal Software” (My Portal Is My Site) Or The Link To My Site (www.myportal.network.net.tc) and i want to make sure they can edit any thing else but the powered by and link to my site

i hope you understand!

---

<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:** [July 12, 2004, 3:21pm UTC](https://forum.kirupa.com/t/help-i-want-to-know-how-to-make-a-password-protected-layer-is-this-posible/57250/9 "2004-07-12T15:21:15Z")

</div>

:huh:

---

<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:** [July 12, 2004, 3:33pm UTC](https://forum.kirupa.com/t/help-i-want-to-know-how-to-make-a-password-protected-layer-is-this-posible/57250/10 "2004-07-12T15:33:16Z")

</div>

ok? so i simpleize it again!

i want to put two pices of text (a link to my site and powered by) i want it so that people cant edit it when its a fla. file but they can edit the rest (eg other text pics link (every thing apart from powered by… and the link to my site))

---

<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:** [July 12, 2004, 6:34pm UTC](https://forum.kirupa.com/t/help-i-want-to-know-how-to-make-a-password-protected-layer-is-this-posible/57250/11 "2004-07-12T18:34:49Z")

</div>

please people i need help it for my schools site and i need this help quick if you are searchin right now i apoligize (sorry) sorry for the dobble post

---

<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:** [July 12, 2004, 7:05pm UTC](https://forum.kirupa.com/t/help-i-want-to-know-how-to-make-a-password-protected-layer-is-this-posible/57250/12 "2004-07-12T19:05:23Z")

</div>

Ah I see. So you need 2 pieces of texts that cannot be deleted or edited.

I’m trying to think of a way but they just keep messing up…

You can’t have the texts loaded because the user could just delete the text box and the actionscript or ANY actionscript to take it off…hmm.

---

<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:** [July 12, 2004, 7:08pm UTC](https://forum.kirupa.com/t/help-i-want-to-know-how-to-make-a-password-protected-layer-is-this-posible/57250/13 "2004-07-12T19:08:34Z")

</div>

Right I see what you mean. I don’t think there is any way of password protecting layers in the .fla file itself. The only thing I can think of is if you externally load the two bits of text you want - then they would be able to change those bits of text, but nothing else. If that is a viable solution, take a look at this: [http://www.kirupa.com/developer/mx/externaldata.htm](http://www.kirupa.com/developer/mx/externaldata.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:** [July 12, 2004, 7:09pm UTC](https://forum.kirupa.com/t/help-i-want-to-know-how-to-make-a-password-protected-layer-is-this-posible/57250/14 "2004-07-12T19:09:50Z")

</div>

If you externally load it, the actionscript to load it can be deleted so I doubt theres any solution unless it’s some type of plugin or component but still theres a chance of no possibility.

---

<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:** [July 12, 2004, 7:11pm UTC](https://forum.kirupa.com/t/help-i-want-to-know-how-to-make-a-password-protected-layer-is-this-posible/57250/15 "2004-07-12T19:11:46Z")

</div>

A good idea might be to make an MC that will load the text into a certain x and y position and you can use actionscript to format color and stuff…

And then it’s good to make this MC SUPER SMALL and then hide it somewhere really really far away from the canvas. You can even hide it away from the outer canvas. Then you can change it’s library name to some type of thing so the user thinks it’s only something that has to do with the rest and what he can edit ;).

---

<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:** [July 12, 2004, 7:55pm UTC](https://forum.kirupa.com/t/help-i-want-to-know-how-to-make-a-password-protected-layer-is-this-posible/57250/16 "2004-07-12T19:55:46Z")

</div>

yes i like the last one but how do i do that X and Y cordanat thing

---

<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:** [July 12, 2004, 7:58pm UTC](https://forum.kirupa.com/t/help-i-want-to-know-how-to-make-a-password-protected-layer-is-this-posible/57250/17 "2004-07-12T19:58:32Z")

</div>

oh you wanna edit everything except the text. yeh my bad in that case ignore my idea of externally loading stuff 😛 (/me goes to hide)

---

<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:** [July 12, 2004, 8:14pm UTC](https://forum.kirupa.com/t/help-i-want-to-know-how-to-make-a-password-protected-layer-is-this-posible/57250/18 "2004-07-12T20:14:21Z")

</div>

Make sure you find out some tutorials on how to use the CreateTextField function. And also how to create links using actionscript.

Oh and about the x and y - when you use the createTextField function, the x and y goes in the parenthesis, example:

createTextField (“PrdByTxt”, 100, 20)…Stuff like that. Just learn how to use that :).

---

<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:** [July 12, 2004, 9:28pm UTC](https://forum.kirupa.com/t/help-i-want-to-know-how-to-make-a-password-protected-layer-is-this-posible/57250/19 "2004-07-12T21:28:37Z")

</div>

i 've tried too many time and the text aint genorating could one of you look at it the Y+X and the hight and width are all right could one of you look?  
here the file  
[font=verdana][size=2][font=verdana][size=1][size=1][http://home.ripway.com/2004-5/108421/site.fla[/size][/size][/font][/size][/font]](http://home.ripway.com/2004-5/108421/site.fla%5B/size%5D%5B/size%5D%5B/font%5D%5B/size%5D%5B/font%5D)

---

<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:** [July 13, 2004, 3:11pm UTC](https://forum.kirupa.com/t/help-i-want-to-know-how-to-make-a-password-protected-layer-is-this-posible/57250/20 "2004-07-13T15:11:53Z")

</div>

please people dot give up on me yet please help my school counting on me and this is the best flash site i know!
