6th section Email Form
This example makes a simple email email form, users only need to add the appropriate mail information, you can automatically call the system's default mail transceiver program, mail transceiver program in the message will be automatically based on the content of the form is added, the form of the interface as shown in Figure 6.1;
Figure 6.1 Email Form main interface
1. Start Flash First, create a new movie, set the movie stage size to 400px*300px (in pixels), set the background color of the movie to be gray, and the color code is.
2. Rename the default layer in the main scene to form, use the Text tool to draw 3 text boxes in the vertical direction of the stage, all set to the input text box, the top text box to enter the subject of the message, so set its text variable name subject in the property panel, as shown in Figure 6.2.
Figure 6.2 Setting the theme text box
3. After setting up the 3 text boxes, the current stage is shown in Figure 6.5;
Figure 6.5 Setting 3 text boxes on the stage
4. Next you need to add a caption to the form, and add a textual description to the text box, as shown in Figure 6.6:
Figure 6.6 Adding a message to a form
5. The most critical part of the entire form is the Send button, once all the contents of the message have been added, it is only through this button that the message can be sent out. So create a new button symbol here, draw a simple rectangular button, and drag it to the lower right of the stage, as shown in Figure 6.7;
Figure 6.7 Adding the Send Message button
6. Create a new layer variables on top of the layer form and add the following action to frame 1th;
Stop ();
Name = "Flashage";
email = "Sjerry@163.net";
mailto = "mailto:" Add name Add "<" add email add ">";
Finally, add the following action to the Send button;
On (Press, keyPress "") {
GetURL (mailto Add "" subject= "Add subject Add" &body= "Add greeting add newline add body);
}
The middle text box is used to enter the greeting for the message, so set its text variable name to greeting in the property panel, as shown in Figure 6.3:
Figure 6.3 Setting the Greeting language box
The bottom of the text box is the body of the message, in the property panel to set its text variable name, the specific settings as shown in Figure 6.4;
Figure 6.4 Setting the Body text box