FLASH Web production examples to explain (use of frame tags)

Source: Internet
Author: User
Tags goto
Web

We all know that we do PS picture processing, the same effect, not only a method can be achieved, like a math problem has n kinds of solution, the same, in the production of Flash web, the implementation effect is not uniform. Today we'll learn to use frame tags to make flash Web

Let's take a look at this simple flash WEB:

It's simple.

After watching the demo, presumably we will emerge from the mind of a variety of production ideas, indeed. You can simply use the goto statement, you can call the external swf,as good words can also be implemented all by as.

We use frame tags today to achieve. Frame Label: Frame label is the name of the frame added

Because this tutorial is mainly about the use of frame tags in the flash web production, so the menu, buttons, loading and so on are not introduced in detail.

The use of as in this example is not very difficult, so it is necessary to first with those who see as on the headache of the compatriots to say hello, do not daunting, really not difficult. And I'll try to explain it in detail. Provide "material" for the production. This is called the material because I have been in the source file has been made to press the twist and MC, if you want to steal lazy can be directly downloaded to follow the tutorial operation. (Just make two: a press twist, an MC, and then can be in the library inside the three.) Modify the text and change it to the corresponding name. There is no repetition here.

  Click here to download the source file


Pull the Btm_ (four buttons, the same MC and named Btm_) into the scene, insert the keyframe at frame 25th, and name the layer BTM

Create a new layer, name MC. Inserts a blank keyframe at frame fifth, pulls the component Mc_index to the center of the scene, inserts a blank keyframe at the tenth frame, and pulls the mc_about into the scene, noting the alignment, with the first MC pair, you can pull two guides at the ruler. Also insert a blank keyframe at frame 15th, pull the mc_guess into the scene, insert the keyframe at frame 20th, and pull the mc_work into the scene to align well.

Now notice. We want to add a frame label for each keyframe we just inserted. Click on Layer MC frame 5th. You can see a frame tag in the Properties dialog box ... Fill in the S1, similarly, the 10th frame is S2, the 15th frame is S3, the 20th frame is S4;

See here I think we also almost understand ... Don't understand?!. It does not matter..

Notice the two codes first:

Label = "S" + _root.link;
gotoAndPlay (label);
On (release)
{
_root.link = 1;
_parent.play ();
}

First look at the second line of code:

link = 1; Assign 1 to parameter link, (I always use C language solution to understand as, Khan, should not mislead everyone)
_parent.play (); And then go back to the top level that's the main scene, play, because at the beginning our animation encounters the first stop on the timeline (); It stopped.

First sentence:

Label = "S" + _root.link; The _root.link value is the 1 we just returned, and the "s" +1 is S1...S1, which is the frame tag we just had.
gotoAndPlay (label); gotoAndPlay (label) also use explanation? Label is S1. That's starting with the frame tag S1.

So the whole code is easy to understand.

When the button is clicked, Link gets a definite value and returns to the label, then Goto jumps to the corresponding MC of the frame label.

  Click here to download the source file

It's not clear how much to read the source file is clear. This example study finished.

Here is just to give you a whole train of thought. For beginners to start making flash Web can be faster to get started, the idea of the clear. and the production will not be so confused.

At the same time about this boutique web-site personal Flash personal homepage production activities. There are not many friends who participate in the activities. (The above pass to Flash bar FTP1, if not uploaded after the event as invalid.), the estimated time is not much. So it is necessary for us to extend the one-month period and hope that we can participate more. The way of the activity. Learning is the purpose.



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.