-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Flash with Drupal
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.login and 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.
We will create a single responder that we will use to handle both the login and logout functionality. This responder will be called userResponder, and we can declare it as follows:
// Set up our responder with the callbacks.
var responder:Responder = new Responder( onConnect, onError);
// User responder to handle Login and Logout commands.
var userResponder...
Change the font size
Change margin width
Change background colour