# Password protection?

**URL:** https://forum.kirupa.com/t/password-protection/17273
**Category:** Uncategorized
**Created:** [April 3, 2003, 8:57am UTC](https://forum.kirupa.com/t/password-protection/17273 "2003-04-03T08:57:42Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![paulks\_is](https://avatars.discourse-cdn.com/v4/letter/p/6bbea6/32.png) [@paulks\_is](https://forum.kirupa.com/u/paulks_is)
#### Post date: [April 3, 2003, 8:57am UTC](https://forum.kirupa.com/t/password-protection/17273/1 "2003-04-03T08:57:42Z")

</div>

hey friends  
I’m still building this CDRom. In it i have a safety sectiion where the user has to go through a shortish presentation b4 they can continue. I wonder if i could put a password box on the front page, so they could skip the safety stuff second time round and go strait to the content? Is this possilbe?  
If so - how they heck do i do 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: [April 3, 2003, 10:17am UTC](https://forum.kirupa.com/t/password-protection/17273/2 "2003-04-03T10:17:03Z")

</div>

i’ve found this tutorial - its for flash 5 though - you think it will work  
[http://www.actionscript.org/tutorials/beginner/Password\_protected\_pages/index.shtml](http://www.actionscript.org/tutorials/beginner/Password_protected_pages/index.shtml)  
Paul

---

<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: [April 3, 2003, 10:18am UTC](https://forum.kirupa.com/t/password-protection/17273/3 "2003-04-03T10:18:32Z")

</div>

Well it is stated that the tutorial is for flash 5 or higher so it should work in MX as well.

---

<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: [April 3, 2003, 10:20am UTC](https://forum.kirupa.com/t/password-protection/17273/4 "2003-04-03T10:20:50Z")

</div>

dur - stupid me!!!  
Thanks very much

---

<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: [April 3, 2003, 10:34am UTC](https://forum.kirupa.com/t/password-protection/17273/5 "2003-04-03T10:34:39Z")

</div>

Hi,  
Another method ( and I think easier and probably more efficient ) is to use a sharedObject, set up a counter and if the counter!=null, send the play head to the relevant frame. Like this :

[AS]//create SO  
myLocalSO = sharedobject.getLocal(“filename” );

//check to see if user has been here before  
if ((myLocalSO.data.counter != null){  
gotoAndPlay(whateverFrame);  
}else {  
stop();//or play presentation  
} [/AS]

on the first frame after your presentaton put :  
[AS]myLocalSO.data.counter++[/AS]

basically, this means that after the first visit, myLocalSO.data.counter will never = null and the playhead will by pass the presentation without the need for passwords etc etc.

Hope that helps

SteveD

---

<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: [April 3, 2003, 10:46am UTC](https://forum.kirupa.com/t/password-protection/17273/6 "2003-04-03T10:46:37Z")

</div>

ok - is that like a cookie?  
im pretty new to this
