Quote Originally Posted by Cnex Industries View Post
Hey im just wondering how did you make the account login thing
my email is [email protected]

Cheers, Greatly appreciated if you respond & help!
When a new account is created, a flash script sends the new username, password, and email (using the command LoadVariables) to a php file on my server;
the php file creates a mysql query for the database where a new row is created with the information for the new user (username, password, decks, etc. etc.)

When someone returns and uses the "Login" button the process is the same, but the flash script opens a different php file that returns a string with all the variables for theat user.

During the game, a third php file keeps the database updated, saving the new variables everytime a user wins or loses a game.

You can find decent tutorials online like this one:
http://www.flash-creations.com/notes...m_database.php

One thing that almost nobody will tell you is: do NOT use the loadVariables script on the root level of your flash movie, it would send ALL the variables to the php files, make a copy of the variables your need to transfer in an instance and use instancelevel.LoadVariables

There are other ways to do it, but, as far as I know, none is a direct connection between the flash file and the database (I wish we could do that).