# Username and password embedded into the flash swf at run time?

**URL:** <https://forum.kirupa.com/t/username-and-password-embedded-into-the-flash-swf-at-run-time/111478>\
**Category:** Uncategorized\
**Created:** [May 27, 2004, 9:35am UTC](https://forum.kirupa.com/t/username-and-password-embedded-into-the-flash-swf-at-run-time/111478 "2004-05-27T09:35:52Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![trevorsaint](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/trevorsaint/32/268_2.png) [@trevorsaint](https://forum.kirupa.com/u/trevorsaint)\
**Post date:** [May 27, 2004, 9:35am UTC](https://forum.kirupa.com/t/username-and-password-embedded-into-the-flash-swf-at-run-time/111478/1 "2004-05-27T09:35:52Z")

</div>

I would like to add embedded username and password protection for a interactive flash map that I have developed.

So if username and password not valid from the embedded list, then do nothing, or display error invalid password, and or username.

If username and password correct then play or do as normal.

Does anyone have ideas on the way I could go about such an addition to my flash file? Something on the main timeline perhaps.

Any help, direction or better still examples would be really great.

Thanks

Trev.

---

<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:** [May 27, 2004, 9:42am UTC](https://forum.kirupa.com/t/username-and-password-embedded-into-the-flash-swf-at-run-time/111478/2 "2004-05-27T09:42:05Z")

</div>

It would work with a an “if- else” test, run a search on the forum, i’ve seen this several times

---

<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:** [May 27, 2004, 10:02am UTC](https://forum.kirupa.com/t/username-and-password-embedded-into-the-flash-swf-at-run-time/111478/3 "2004-05-27T10:02:08Z")

</div>

Well I am still not good with the if else, but will try, have you got a direct link for password protection Ubik, or can you expand just a little more on a typical example. I think that I would place this on say keyframe 1, as there is only one keyframe anyway for the complete map, as everything is in its own mc instance.

And have it so that if not correct then do not go to frame two. Sample would be ace 🙂

Regards

T

---

<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:** [May 27, 2004, 10:10am UTC](https://forum.kirupa.com/t/username-and-password-embedded-into-the-flash-swf-at-run-time/111478/4 "2004-05-27T10:10:02Z")

</div>

Look at this [http://www.kirupa.com/developer/flash5/ifelse.htm](http://www.kirupa.com/developer/flash5/ifelse.htm) , this a simple tutorial on password protection, if you want each people to have their own name and password, i suppose you’ll have to use something like a database.

---

<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:** [May 27, 2004, 10:28am UTC](https://forum.kirupa.com/t/username-and-password-embedded-into-the-flash-swf-at-run-time/111478/5 "2004-05-27T10:28:38Z")

</div>

Thx for the link. No Its simply a few usernames and passwords just to allow same access, no extra or restricted right applied :), thx i will look at this

T

---

<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:** [May 27, 2004, 10:46am UTC](https://forum.kirupa.com/t/username-and-password-embedded-into-the-flash-swf-at-run-time/111478/6 "2004-05-27T10:46:07Z")

</div>

So it will fit you, you can add passwords and also username if you want

---

<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:** [May 27, 2004, 10:47am UTC](https://forum.kirupa.com/t/username-and-password-embedded-into-the-flash-swf-at-run-time/111478/7 "2004-05-27T10:47:27Z")

</div>

Gr8, just what I need 🙂 thx again

T

---

<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:** [May 27, 2004, 12:28pm UTC](https://forum.kirupa.com/t/username-and-password-embedded-into-the-flash-swf-at-run-time/111478/8 "2004-05-27T12:28:21Z")

</div>

No problem 🙂

---

<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:** [May 27, 2004, 12:30pm UTC](https://forum.kirupa.com/t/username-and-password-embedded-into-the-flash-swf-at-run-time/111478/9 "2004-05-27T12:30:45Z")

</div>

you do realize that swf’s can be decompiled, so people can get your usernames and passwords if they wish.

---

<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:** [May 27, 2004, 12:36pm UTC](https://forum.kirupa.com/t/username-and-password-embedded-into-the-flash-swf-at-run-time/111478/10 "2004-05-27T12:36:12Z")

</div>

Lol, ok bring me down why dont you.

So preventing import does not correct this issue then?

What else can be done to prevent this from happening ?

Trev

---

<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:** [May 27, 2004, 12:54pm UTC](https://forum.kirupa.com/t/username-and-password-embedded-into-the-flash-swf-at-run-time/111478/11 "2004-05-27T12:54:12Z")

</div>

[http://www.kirupaforum.com/forums/showthread.php?t=51900](http://www.kirupaforum.com/forums/showthread.php?t=51900)

---

<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:** [May 27, 2004, 1:10pm UTC](https://forum.kirupa.com/t/username-and-password-embedded-into-the-flash-swf-at-run-time/111478/12 "2004-05-27T13:10:03Z")

</div>

mmmm thx for the link, this is an internal thing, not an external thing.

So maybe the standard will do, as it will not be going live on the net. Its a projector.

🙂

thx
