dcsimg
First time here? First time here? Newsletter Signup Newsletter
Search tutorials
Author: Neilio500 | Website: http://www.neilio500.2hell.com
Welcome to the Dynamic Multiuser Login Tutorial. In this tutorial you will acheive in making a multiuser login. This tutorial is Part A - Multi username and password login other tutorials include; A) Multi username and password login B) Just a multiuser password login C) Multi username and password login WITH dynamic message box You have probably come to this page because all the multiuser logins you've seen so far, you've needed to use a txt file or php, but what if you can't use them for some reason?? well you've come to the right place. I have found a solution that does not use any php or txt file or cgi scripting, it only uses flash. The only one side effect i've found is that to add users, you need to go back into flash and edit the file, but if you can not use php or any scripting, then i'm guessing you'll be quite happy with going back and editing the file! If you have any problems, please don't be afraid to ask me at neilio500@hotmail.co.uk OK, enough with the chit chat! let's get down to business...


PART A - A Multi Username AND Password login. Step 1: First off, create two input text boxes, making sure you set the second one from a single line text box to a password text box. Step 2: Set the variable for the first one as "user". Set the variable the the second one as "pass". Step 3: Create any type of button that you would like to use and place it on the stage. CHECK You should now have two input text boxes with the variables "user" and "pass", and a button on the stage. If not please repeat steps 1 - 3. Step 4: In the frame, put the follow actions; stop(); Step 5: In the button>, put the following actions; on (release, keyPress "") { if (user == "111" && pass == "111") { //change user and pass values to what you want gotoAndPlay("enter"); //change this to what you want //eg getURL(); } else if (user == "222" && pass == "222") { //change user and pass values to what you want gotoAndPlay("enter"); //change this to what you want //eg getURL(); } else if (user == "333" && pass == "333") { //change user and pass values to what you want gotoAndPlay("enter"); //change this to what you want //eg getURL(); } else if (user == "444" && pass == "444") { //change user and pass values to what you want gotoAndPlay("enter"); //change this to what you want //eg getURL(); } else if (user == "555" && pass == "555") { //change user and pass values to what you want gotoAndPlay("enter"); //change this to what you want //eg getURL(); // TO ADD MORE USERS, SIMPLY ADD ANOTHER... // } else if (user == "" && pass == "") { // change user and pass values to what you want // gotoAndPlay("enter"); // change this to what you want // eg getURL(); // IN THIS SPACE } else { gotoAndStop(1); //change this to the intial login frame user=""; pass=""; //leave these if you want the input boxes //to be reset to nothing if the details //were entered wrong } } CHECK You should now have two input text boxes with the variables "user" and "pass", and a button on the stage. If not please repeat steps 1 - 3. ALSO the frame should have the above actions and the button should have the above actions If not please repeat steps 4 + 5
Thank you for trying out this tutorial. If you have ANY problems at all, please email me, i WILL help you out.
» Level Intermediate

Added: 2006-04-18
Rating: 3 Votes: 17
(10 being the highest)
» Author
Trying to help some first time - advanced flash creators
» Download
Download the files used in this tutorial.
» Forums
More help? Search our boards for quick answers!

Comments

  • There are no comments yet. Be the first to comment!

  • You must have javascript enabled in order to post comments.

Leave a Comment
  • Your email address will not be published. All fields are required.
Featured Flash FLA
» Author: Inocreato
» Title: RaiseTheBlocks
» Description: Raise all the blocks to win the game
Featured Sound Loops
Image for equalize

Audio Player

» Author: TomCat Carty
» Title: The Wood
» Description: Just a little game ending or it can maybe be looped. Recorders with music box and percussion to give the feel of well, I don't know, the woods? Free to use, just credit me. thank you
Latest Font
» Author: Fábio FAFERS
» Description: I created this font for free use. Everyone can apply it in personal or business texts. Its free, but I want to be communicated in case of business use. Donations are accepted to keep the project of free fonts alive! Thank you all
Featured Sound Fx
Image for equalize

Audio Player

» Author: Davisigner
» Description: Hmm... what to say about this one? It's reminiscent of the closing notes of the opening music from the Three Stooges done in a church organ style with a closing cymbal crash. I'll give this one away gratis, but feel free to check out my free loops and potential upcoming license-mandated ones over in the respective part of Flashkit.