Our next task will be to utilize the User Service that we set up earlier in this chapter to allow us to perform a remote login using Flash. Within the User Services module, there are two different remote functions that we can use to log in and log out of our Drupal system. These two functions are
user.logout respectively, and depending on whether the user is logged into the system or not, we will need to call one or the other. But first, we will need to set up our responder that will be used to contain our callback functions when the server returns after each remote function is called.
// Set up our responder with the callbacks. var responder:Responder = new Responder( onConnect, onError); // User responder to handle Login and Logout commands. var userResponder...