nice menu!
Posted 2 months ago
This file is similar to my other horizontal navigation menu except this one includes buttons instead of text with dividers. It is truly indispensable and can be customized for lots of different situations. I use it as a base for all of my menus and it’s a huge timesaver.
Everything is created dynamically from an external ActionScript file and everything can be easily customized by editing only a few variables at the top of the file. The nav will grow horizontally no matter how many items are added to it. And unlike a lot of other menus the buttons in this menu are dynamically sized to match the text inside the button so the buttons will grow to match a long section title. In addition it includes a cool blur effect on rollover.
Two examples are included in the preview to demonstrate the versatility of the file. The first one has rounded buttons and is set to not highlight the section you click on and the other one has rectangle buttons and highlights the section you click on and demonstrates how the text can be positioned inside the button.
You can easily drag and drop to use in your own project.
The code is sparkling clean and SUPER easy to follow. Here is a list of everything that can be edited dynamically:
Cheers!
-modular
MY PORTFOLIO
XML Website Templates
Backgrounds
Menus
Posted 3 months ago
One question: Can you control the width of the button or is the width dependent on the text?
Posted 2 months ago
ghettosoul, The width of the button is dependent on the text. There is a padding variable you can set though which will make all the buttons larger relative to the size of its text label. You can see it demonstrated in the difference between the two different samples shown in the preview.
Also you could just add blank spaces to the button names which will make the button wider. For example “Selected Work ”.
Hope that helps.
-modular
Posted 2 months ago
dup,
In the dynamic_nav.as file locate the onRollOver function on line 139. Put your sound code inside that function. Hope that helps.
-modular
Posted about 1 month ago
dup,
In the dynamic_nav.as file locate the onRollOver function on line 139. Put your sound code inside that function. Hope that helps.
-modular
Posted about 1 month ago
dup,
In the dynamic_nav.as file locate the onRollOver function on line 139. Put your sound code inside that function. Hope that helps.
-modular
Posted about 1 month ago
dup,
In the dynamic_nav.as file locate the onRollOver function on line 139. Put your sound code inside that function. Hope that helps.
-modular
Posted about 1 month ago
Hello Modular, Thanks for your answer but can write me an example with a sound named like “hello.mp3” Best regards and thanks dup
Posted about 1 month ago
dup,
The following is straight from the Help documentation inside Flash about how to attach sounds. Hope that helps.
Select File > Import > Import to Library to import a sound. Select the sound in the library, right-click (Windows) or Control-click (Macintosh), and select Linkage. Select Export for ActionScript and Export in First Frame; then give the sound the identifier a_thousand_ways. Add a button to the Stage and name it play_btn. Add a button to the Stage and name it stop_btn. Select Frame 1 in the main Timeline, and select Window > Actions. Add the following code to the Actions panel:
var song_sound:Sound = new Sound();
song_sound.attachSound(“a_thousand_ways”
;
play_btn.onRelease = function() {
song_sound.start();
};
stop_btn.onRelease = function() {
song_sound.stop();
};
-modular
Posted about 1 month ago
Do these buttons easily interface with a data base of text, video, and pic. files? Thanks, Michael
Posted about 1 month ago
mifran,
Not entirely sure what you are asking but you can have any code you want execute when you click the buttons so I guess the answer to your question is yes. 
-modular
Posted about 1 month ago
camgauthier,
It’s not XML based but everything in the file is dynamic – for example the link titles just come from adding names to an array.
-modular
Posted about 1 month ago