Flash Form Production Example: email form

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.