Here is the flash code you need to use to send data to asp and then to access database. Then if Login == Password, you will be able to enter, else, wrong way… ehehe
//code
function sendata()
{
var sendVars = new LoadVars();
sendVars.login = mc_login.login.text;
sendVars.senha = mc_login.senha.text;
sendVars.load(“login.asp?” + sendVars.toString());
sendVars.onLoad = function ()
{
if (sendVars.ok == “true”)
{
loadMovieNum(“flash/vip.swf”, 1);
}
else
{
mc_login.login.text = “acesso negado”;
mc_login.senha.text = “”;
}
};
}
stop ();
mc_login.bt_ok.onRelease = function ()
{
sendata();
};
Then you just have to use the asp code on the part 1.
All the best cpinho
Tags: actionscript 2, Adobe, AS2, ASP, code, database, Flash, login, Source, system
| Copy and Paste the code below | |
| Email and IM | |
| Websites | |
| Forums | |
follow: