basicly you setup a username-input field, and password field.
and then you write for example a php file with the following code:
in your flash you'll have to place this code:
this should work, and i hope it helps a little. if you need more info on login systems in php, search in for posts in the php-mysql area
Greetz,
UnrealEd