How to make a login/password entrance with flash & asp – Part 2
by Carlos Pinho, February 1st, 2007
  • Share
  • Share

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: , , , , , , , , ,

Copy and Paste the code below
Email and IM
Websites
Forums
Get This

No Comments.

Let leave a Comments for this post.