So as i have seen a lot of posts about this i have decided to explain how i go about logging in here.
1. To login you need 3 things
1. Username in the form user@user.com
2. Password.
3. Security Token
To get the security token for a user go to setup>Reset your security token. This will then be emailed to you.
Logging into an Administrators account seems to be different than logging into a normal users account.
For Administrators you have to set the protocol to 'http' for normal users set it to 'https' in addition we have to add the token to the password as follows.
private var _conn : Connection = new Connection( ); private function login( username : String, password : String, token : String, isAdmin : Boolean = false ) : void { _connection.protocol = isAdmin ? 'http' : 'https'; var login : LoginRequest = new LoginRequest( ); login.username = value..username; login.password = value..password.toString( ) + value..token.toString( ); login.callback = new Responder( loginResult, loginFault ); _connection.login( login ); }













