# \[Flash8\]username and password data in seprate file?

**URL:** <https://forum.kirupa.com/t/flash8-username-and-password-data-in-seprate-file/176287>\
**Category:** flash\
**Created:** [January 22, 2006, 3:03pm UTC](https://forum.kirupa.com/t/flash8-username-and-password-data-in-seprate-file/176287 "2006-01-22T15:03:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![safa\_uk](https://avatars.discourse-cdn.com/v4/letter/s/4491bb/32.png) [@safa\_uk](https://forum.kirupa.com/u/safa_uk)\
**Post date:** [January 22, 2006, 3:03pm UTC](https://forum.kirupa.com/t/flash8-username-and-password-data-in-seprate-file/176287/1 "2006-01-22T15:03:06Z")

</div>

Hi i am have big problems, im designing a login screen and it will require more than one user to be able to access differnt parts of the flash file.

at the moment i am using **IF** statements.

```auto

password = inputName;
username = inputUser;

if (password == "butterfly" and username == "safa") {
        inputStatus = "Access granted!" ;
        fscommand("exec", "safa.exe");
        gotoAndStop(6);
        inputUser = "Retype Username & Password";
    
} else {
        inputVer = "Username or Password Incorrect!";}
        
if (password == "butterfly2" and username == "alison") {
    inputStatus = "Access granted!" ;
        gotoAndStop(7);
        inputUser = "Retype Username & Password";
        inputName = "";
} else {
    inputVer = "Username or Password Incorrect!";
}

```

there is no problem with this method but if a user wants to change there username or password they wont be able to do so because they wont have any idea how to change the script.  
the other thing is the flash file is being converted to a standalone .exe file so it’s basically like a program.

to get to the point I need to know if there is any way for the Actionscript to be able to read a .txt document so that when the username and password is changed in the .txt document flash will read it so when they enter the new username and password it will still allow them to access the files.

many thanx  
safa
