|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi,
New to flash, and need some help with the following: Creating a new website in Flash 6 have created a scene called downloads, i need to know how to: 1. Create username's and passwords for different users but also assign those usernames and passwords to different areas for example user 1 can go to scene x only and user 2 can go to scene y only. i'm sure someone out there can help me please? |
|
#2
|
|||
|
|||
|
diceman,
if you still need this doing, then just drop me a mail and i'll be happy to wack a *fla up for you in no time at all. If you still need it ? Regards, snapple ![]() |
|
#3
|
|||
|
|||
|
hi snapple ,
would you care to share the code / file with rest of us here? ![]() |
|
#4
|
|||
|
|||
|
This is a very simple version, and could be done better by puting all paswords in an array - it would make it easier to update, but simple is good for now :
PHP Code:
snapple ![]() Last edited by snapple : June 27th, 2003 at 04:03 AM. |
|
#5
|
|||
|
|||
|
Passwords
Hi Snapple,
Thanks very much mate, could you give an example with two different passwords in it so i know what to do for lets say 5 different movies and passwords. would be most grateful if you can show this for me! Diceman. |
|
#6
|
|||
|
|||
|
diceman,
btw - should have mentioed that "passwords" is the var name for the textfeield on the the root. Well, you can do it this way: PHP Code:
So thats basically giving the intepretor loads of else statements, that works fine. Hope this is of help. Snapple ![]() Last edited by snapple : June 27th, 2003 at 08:06 AM. |
|
#7
|
|||
|
|||
|
..........but that can lead to a bit of monitor hitting when changing passwords, so you could just write a function to check an array, like this:
PHP Code:
then on the button have this: PHP Code:
snapple ![]() |
|
#8
|
||||
|
||||
|
I don't know if each user has a unique password, or if you want to validate users as well, but if you wanted to check that user enters their own password, I would set up an accociative array:
PHP Code:
and then just make one check, avoiding the loop: PHP Code:
|
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > Creating Passwords! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|