Flash MX Production Message Book

Source: Internet
Author: User
Tags mail
Original author: The Prodigal son of border town

Animation effect: (must download the FLASHMX plugin to see)


Make a form

source File Download >>>>>>


In fact, now in the Flash MX is made very simple, that is, we want to use the Flash UI components. There are actually a lot of Flash UI components, which is marked below.



The effect of this thing is this: fill and select on the left, then press "Submit Information", the right will appear the correct information. Let's first put all of this on the screen, and if you're using Flash MX for the first time, look underneath it, we can adjust the size of the screen directly:





Let's start with the top one that can slide.

It is a scrollpane, before the production, we have to prepare a MovieClip, we named it Efe, put it in the Library is like this:



Right-click Efe this MovieClip, and then choose "Linkage" (used by the old version of the Flash should be used), fill in linkage name: Efetext.



OK, here's the ScrollPane object, the Properties box at the bottom of the screen appears, then fill in the Scroll Content column "Efetext".



In this way, we have done a job: Put Efe this Movie Clip into Scroll Pane. The effect is what we can see: we can drag the scroll bar to navigate through the Efe Movie Clip.

OK, then look at how the dropdown box is made. We are using the Flash UI compnents inside the ComboBox, we will fill in some of the necessary items:



Where Labels represents the content of the display, and the following data represents the corresponding value of the above content, which is similar to the usage in HTML. Row count, which controls the number of bars displayed for the item, and if this number is exceeded, the scroll bar appears. In this case, there are only 6 items, so there is no effect and no roll phenomenon. Interested may wish to try to modify their own to 4, 5 or something to see the effect.

Below is the Radio button, sex Select male or female, see the option "male" How to do:



The Label is the content that is displayed, and the function of Data is the same as the dropdown box above, note that the Group Name, in this case, has two options for "male" and "female", which are related and can only be selected, so the link between the two projects is here--group Name, "male The Group Name for two options is the same, and if not, then there is no relationship between the two options. Here we all take "sex".

Check Box is similar, do not say more.
The emphasis is on the relationship between the text box and the roll bar.



Let's put a text box named words, and then put a Scroll bar on the edge, Scroll bar light itself is meaningless, it's going to point to a text box, then we'll fill in the Target TextField project with "words." In this way, the two are simply connected together. It's funny, it's easy.

function OnClick (component) {
_root.resulttext.text = "Name:" + uname.text + "\ R Rating:" +
Choice.getvalue () + "\ r sex:" + sex.getvalue () + "\ R message:" +
Words.text + "\ r mail:" + mail.getvalue ();
}

The only part of the program below to this little thing, we put the above program on the main timeline (_action):



You can easily read, is to show the data. A bit different from the previous, for example, the text box is not simple is a variable, in MX it has become an object, so to use _root.resulttext.text to manipulate the text.

When the program is available, we can invoke it with a button, and the button's property is this:



"OnClick" is to call just read the active painting that part of the program, it seems very simple?
Well, I think the various steps are very clear, we have a good try yourself!
Tired...... Good bye!

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.