Login Text Field

My site has been setup in the following manner … the ‘main’ SWF file contains a loader component that simply pulls external SWFs representing different pages on my site.

I plan to implement a ‘Login’ button on my site that triggers an input text field when clicked (this I do not need help with) … the user will enter their user name (for this example let’s say it’s ‘smith’) into the text field and press a submit button. I would like the user name (‘smith’) to trigger an external SWF file (named ‘User.swf’) loaded into a folder on the web server (named ‘smith’).

There will be many users on my site, each of their user names will be unique - likely their last name followed by a string of numbers. The user and I will determine their user name prior to they ever attempting to login. I have attained some code (below in [COLOR=blue]blue[/COLOR]) that will somewhat work … but it requires me to open the FLA file each time I need to add a user name/folder on the web server. I would prefer to simply pass the user name on in some way triggering a folder which will always be identical to their user name. This will allow me to simply create folders on the webserver without having to open the FLA each time.

Is this possible, and if so how?

The code below works as follows … ‘pic1.jpg’ located in the ‘mentor’ folder is pulled into a holder when the user enters ‘mentor’ into the input text field and presses the submit button … ‘pic1.jpg’ located in the ‘flash’ folder is pulled into the holder when the user enters ‘flash’ into the input text field and presses the submit button.

[COLOR=blue]stop();[/COLOR]
[COLOR=blue]mytext.text = “”;[/COLOR]
[COLOR=blue]submit.onPress = function() {[/COLOR]
[COLOR=blue]checking();[/COLOR]
[COLOR=blue]};[/COLOR]
[COLOR=blue]function checking() {[/COLOR]
[COLOR=blue]if (mytext.text == “[COLOR=black]mentor[/COLOR]”) {
nextFrame();
holder.loadMovie(“mentor/pic1.jpg”, 1);
//mytext.text=""
} else if (mytext.text == “[COLOR=red]flash[/COLOR]”) {
nextFrame();
holder.loadMovie(“flash/pic1.jpg”, 1);
//mytext.text=""
trace(“dd”);
}
}[/COLOR]

[COLOR=blue]NOTE: “[COLOR=black]mentor[/COLOR]” and “[COLOR=red]flash[/COLOR]” represent the “input/trigger” words.[/COLOR]


Thanks in advance to anyone that is willing to lend a hand. I truly appreciate it.
Brett