Tutorial Feature
Part 1: The Theory
Part 2: The Setup
Part 3: Requesting the Token
Part 4: Logging In
Part 5: Conclusion

Tutorial source files
Flash
Secure login with Flash

HTML
HTML quick tips

Photoshop
Converting Images to Black & White

Part 2: The Setup

The first thing that you need to do once you have created your new Flash project is include the library needed for the secure hash operation. Obtain the file called "md5.as" from the source for this project, available for download from the left "Tutorial Resources" box, and make sure it is in the same directory as your Flash project. Create a layer called "Script" and create a keyframe on the first frame on this layer. Paste the following code into the actions box:

Illustration showing ActionScript code
Figure 2: Including the MD5 secure hash library

You also need to set up the text fields, with a username input text field, a password input text field, a variable text field for the server response, and a login button.

Illustration showing layout of project
Figure 3: Possible layout of the project.

    < Previous: The Theory Tutorial Start Next: Requesting the Token >    
 © Copyright 2004 Nathan Derksen