|
Ok, back to explaining the code. Remember initiating the variable curNode? Well it's back. The first thing that happens in the for loop is setting curNode to menu.childNodes[i], which is the item node at the index of whatever the value of i is currently at in the loop. The next line is where we actually attach our heading movie clip to the holder movie clip already on the stage using attachMovie().
2. First, let’s create a menu item. Draw a rectangle of size 40×40. Convert it into a movie clip named “menuItemâ€?. Set the registration point to the bottom left corner. I used a 4 pixels wide white stroke and for the fill #ff8800. 2. Let's move to Flash IDE. Create a new document of the size you want. //Import TweenMax and activate tint plugin import gs.*; import gs.plugins.*; TweenPlugin.activate([AutoAlphaPlugin,TintPlugin]); ?? //Set how many menu items we will have const NUMBER_OF_ITEMS:Number = 20; //Save the mask's height var MASK_HEIGHT:Number = myMask.height; //This movie clip will contain all the items var menuHolder:MovieClip = new MovieClip(); //Position the menu holder to the same place where the mask is menuHolder.x = myMask.x; menuHolder.y = myMask.y; //Add the menuHolder to the stage addChild(menuHolder); //We want to know when the mouse is over the menuHolder var mouseIsOver:Boolean = false; //We want to know the previous y coordinate of the menuHolder for the animation var oldY:Number = menuHolder.y; //Set the mask for menuHolder menuHolder.mask = myMask; var HOLDER_HEIGHT:Number;
28. Modern Horizontal Flash Menu with ActionScript 3 | FlashMyMind - Flash and ActionScript 3 Tutorials
Turn your SWF project into EXE application To view how this menu works, download and unpack the demo file "democdmenu.zip". After you unzip it, run the file menu.exe. It is a sample menu and we will create it now.
53. XML Flash Menu
To view how this menu works, download and unpack the demo file "democdmenu.zip". After you unzip it, run the file menu.exe. It is a sample menu and we will create it now.
false - by default this is set to false so we aren't adding anything new here. When this parameter is set to true objects will be picked up from it's center (as opposed to the place where the mouse was pressed).
Everybody wants to create their own animated menus that suddenly appear out of nowhere when they hover over a button . . . don't they? Well, if they do, then Craig Campbell is here to show them how!
MenuHandler is an extension of the MovieClip class, the majority of this tutorial will be concerned with that class. It's responsible for managing basically everything we do.
152. Nice menu bar
154. Rotating Menu
Select the Rectangle tool and for the Fill select 'No Fill' and for the Outline select 'black'. Now use the tool to draw an out line over each of the new Item menus. We need to do one more thing to the 'Outlines' layer. Select the arrow (pyramid) thing we made and rotate it about 45 degrees counter-clock wise (left to right). 7. To add more choices to the right click menu, first define a new function named "menuChoiceThree" then add another line like 1. Before we begin creating the whole navigation system were going to have to create a new document depending on how many links you need. In this tutorial I will be making a vertical menu. Our next thing is the 'Rolloff action rect' layer. If this layer is locked, unlock it. and select it. What this layer is going to do is act like a reset button. So when you Roll off of the Item buttons the MC will reset to its normal state. This button needs to be over sized, So, it is bigger than what our Item buttons extend to. So create select the rectangle tool. For the Fill use a 'light blue' color (or any light color) and for the Outline use 'No Fill'. And create a box that is greater in size than the Menu and its Menu Items are. The aim of the tutorial is to learn how to create a drop down menu that will allow you to create a navigation system. This can be used to move from one part of a Flash movie to another, or to different web pages. Replace the ActionScript from the step 7 with this actionscript if you place the menu at the Top of the Movie. This is a simple animation to scroll the items on our menu, and when it gets to the last frame we stop the animation. This tutorials shows you how to create a cool, hi tech looking floating menu in Flash. I will teach you here to design it to look awesome, like all those nice sites look. Your Movie should have a Menu that swings in with buttons that go to different location in your Flash Movie. I hope you found this tutorial useful and easy to follow. Repeat this procedure 3 more times for each of the remaining buttons. In the end, you will have all the particular buttons required for your flash website menu on the stage. The aim of the tutorial is to learn how to learn how to customise the context menu. This is the menu that is accessible by right clicking on a Windows PC or by Ctrl click on a Mac. This is a new feature available in Flash MX 2004. Cross Ref: The technique used here is the same as that which enables a movie to play backwards see intermediate tutorial: Playing a Flash Movie Backwards First of all, find on Internet or somewhere any picture of sign post. Then, Create a new flash Documnet, Choose file > Import > Import to Stage and Import that picture in flash. After that, using the flash tools for drawing (Line Tool, Paint Bucket Tool....) draw it in flash. You can also draw my "Sign post" if you like. Y ou could have as many objects sliding in and out as you wish. These sliding objects may contain any flash object such as a graphic, a button, an input text frame, an animation or anything else. The only condition is that the object must be embedded in a movie clip symbol. So if you make a button, that button must be placed inside a movie clip then placed on the stage. Go back to root...and holaaa, we can see now our button. Don't worry, colours will be fine, in flash project file, you see button, but in the final project you won't. So, if you make a tab menu interface for your (or your client's) flash web site, drop me a mail. I'll be really glad to see it! After that you would have a smooth drop-down menu. If you want to put "easing" then simply select the "move" action of the mask located at the bottom of the sprite. And put 2 in the box. In the previous tutorial I taught you how to make a simple drop-down menu but in this tutorial I'll teach how to put a scroller in drop-drop menu so it would be a drop-down menu with scroller. First you have to learn a scroller then you have to combine the menu and the scroller. We are going to make this type of scrolling menu: click on (-=) and add the number 259. goto transform again. click on (*= and add 0.8) this controls the speed... goto transform again and add (+=) and add the number 259 again...
|
| ww_w.j___av__a___2_s___.c___om__ | Contact Us |
| Copyright 2009 - 12 Demo Source and Support. All rights reserved. |
| All other trademarks are property of their respective owners. |