This week we discover how to organize our Interactive content with Pull down menus. Our book does not have any special exercise dedicated to pull down menus. Those are your resources: My video-tutorial on how to build a pull down menu using the sample file. Web-page following the production process, and you can follow it with this week's sample file.
http://soma.sbcc.edu/users/ajarabo/F_online/pull_down_menu.htm |
You are already familiar with pull-down (or better called, drop-down menus) as a user, since both Macs and PCs use them as a way to organize their user interface (look at the uppermost bar in your computer). It implies rolling over a section and choosing among the sub-section elements. 2. A Pull-down menu helps optimize the use of "the real state" in your site (the surface of your web-page, in this case the area of your Stage) by using the same area of the stage for different content, displayed on demand by user interaction . 3. Most pull down menus work on Roll-Over of the menu item. This type of interface speeds up the access to the content by allowing you to visualize the content of a menu without having to click on it. According to some studies in web-usability, the number of clicks required to access your content highly influence your chances of keeping the visitor attention, with less chances to keep your audience's the more clicks your demand in order to access the content. |
Building a drop-down menu in Flash requires an already organized and set list of content divided in groups (with menu names and submenu items). It also requires an elaborated construction with buttons inside movieclip-symbols and some simple Action Scripting commands to add the functionality to the project. | See student work with pulldown menus: http://soma.sbcc.edu/users/ajarabo/F_online/pulldown_examples.html |
Those are the crucial concepts in the Production of a Pull Down Menu:
1. Each main Menu is organized INSIDE a movieclip symbol.
2. When we rollOver the name of the menu we want to SEE the submenu list. We cannot structure this content INSIDE a button (the classical way until now) because once we see the list, we want to be able to choose among that list our preferred subMenu item (the one we really want to click on). When we click-on the chosen subMenu item is when we really access the content. |
|||
3. See how we create the sub-menu list as a column of active buttons. I have created a frame-label(ROLL) and scripted the section-button to gotoAndPlay to the ROLL framelabel. Each subMenu button is placed on an independent layer, all layers under a mask, so you don't see them underneath the Menu text). You can make the submenu list appear with any other effect you want, In the image on the right, each one of the subsection buttons (art, animation and interactive) are already scripted to gotoAnd Stop further along in the timeline, but the timeline hasn't still been created. |
|||
4. Once you get to the final frame of the animation you set a stop-action so the user can choose the subMenu item by clicking on one of the buttons. If you press on a subsection button on the Stage,
the code will tell the playhead in the Timeline to move to the framelabel of the same name.You will place the content in a keyframe under that frame number.
5. This construction, with all the menu content within 1 movieclip symbol, allows us to be able to Hide all content by coming back to frame 1 when a different pulldown menu is called (in your file that would be Contact or Bio). To track when exactly the user is abandoning this menu and approaching another we can choose among 2 different tracking devices: The first one is a "visual device": a button that detects when the user is getting close to any other menu (see the transparent button placed around the word portfolio on Stage. It is placed on the layer "transp_button,under the framelabel ROLL). |
|||
When the user steps into that area (technically rolling out of our whole section), we want the whole content to disappear by taking the playback head back to frame 1. When the user does rollOver on that area, the script on the transparent button makes the movieclip's play-head comes back to frame 1 and the content disappears altogether to make room for another section's content on the Stage. NOTICE that I am using the Hit-area of a button to define "a trap" that informs about the rollOut from our menu.
|
|||
The second way of tracking the user appraching a different section would be through action Scripting. If you add this script to each section-button, you don't need to use the "transparent button trick" seen above. You will need to name every Section-movieclip. So you can reference it on the code. Notice that the programming for each section-button is placed INSIDE the section-movieclip. Lets imagine that you have named your sections in the Properties panel: As you see, you are asking the portfolio button INSIDE the portfolio movie-clip, to tell the Main Timeline to look for all those movieclips existing in the Main Timeline, and tell them to modify their displayed frame inside their own timelines, to make sure that everybody is in frame 1 BEFORE our movieclip displays its content.
|
|