Korea Navigation Bar Analysis

Source: Internet
Author: User
Tags array include range
Navigation The effect is as follows: < c14> Preparatory work:
1. Create a new movie clip called Item_bg ~
In the ITEM_BG to add a rectangular block, the size of the button is about the same size, specific tune ~
Then name the link item_bg the movie clip "mblock"
2. Create a new movie clip named Item_en ~ ()
Adds a dynamic text box to the item_en, names the instance name "Itext", and resizes the text box to its own size.
Notice here that in the lower right of the property bar, there is a "character ..." button, click to see the character options ~ where the default is no characters, that is, what characters can be displayed ~ Click the "Specify Range" button, you can enter the "Include this property" in the input box characters or text, Only these words or characters can be displayed ~
3. Create a new movie clip called Item_zh ~
Adds a dynamic text box to the item_en, names the instance name "Itext", and resizes the text box to its own size.
Many friends are here do not understand, do not understand why they add text can not be displayed, see the second paragraph above should be able to understand the ~ only to add their own text added to the "Include this attribute" in the input box ~
4. Another new two film clips, item_l and item_topline~ respectively
Item_l is the split line, Item_topline is the color bar above the text, the size of the position of their own adjustment ~
5. Create a new movie clip named MenuItem ~
The main thing here is to arrange the various film clips that you just made.
The instance names are as follows:
Item_topline:topline
item_l:mc_l
Item_en:mc_en
Item_zh:mc_ch
and name the link MenuItem the movie clip "MenuItem" ~
All the preparation work is done, then add the code ~
Back to the main scene, add the following code in the first frame:


var drag = 0.1;
Vibration parameters
var flex = 0.7;
Vibration parameters
var Menuen = new Array ("News", "Movie", "Music", "Game", "Net TV", "BBS", "member");
Define an array, call the corresponding English text, you can add or modify here, of course, do not want English to delete it ~
var Menuzh = new Array ("News channel", "Movie Channel", "Music Channel", "Game Channel", "Network TV", "Netizen Forum", "member area");
Define an array, call the corresponding Chinese text, ditto, remember that these two arrays of text can only enter your specified range of text, or can not be displayed ~
var menuurl = new Array (" http://www.cinkey.com:88", "#", "#", "#", "#", "#", "#");
Define an array, call the corresponding link ~
var menucolor = new Array (0XD808B8, 0x00a2ff, 0x96d302, 0xffc600, 0xff5400, 0x7908d8, 0x02d396);
Define an array, call the corresponding color value ~
var mblock = This.attachmovie ("mblock", "MB", 0);
Attach a movie clip with the link name mblock to the scene and declare a variable mblock to specify it ~
mblock._y = 5;
Set the y-coordinate, the y-coordinate is always the same
   Click here to download the original file to learn by yourself

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.