As the header said, why doesn’t this work?
I want to use it as a login screen in flash to my ftp.
//This goes in frame actions
function Login(user, pass, servers) {
var cusername = user:String;
var cpassword = pass:String;
var cserver = servers:String;
if (cusername == undefined) {
status = "Please enter your username";
} else {
if (cpassword == undefined) {
status = "Please enter your password";
} else {
if (cserver == undefined) {
status = "Please enter the server";
} else {
address = "ftp://"+cusername+":"+cpassword+"@"+cserver;
getURL = (address, _blank);
username = "";
password = "";
}
}
}
}
for the connect button:
on (Release) {
_root.login(username, password, server);
}