Multilevel Sliding Menu requires Macromedia Flash 8 and Action Script 2.0. It has a tree structure, getting the data from a XML file.
1. Customization:
a. Edit Library symbols wich contain the \"[editable]\" string. You can easely change color or add gradient color, or set you own animations.
b. Open \"MenuItem.as\" and edit the variables inside the commented block named \"CUSTOMIZATION\"
2. Data Provider
The data provider is a XML file named data.xml. This is the default file name and the file it self should be in the same directory as the flash movie clip.
You can also set your own file path via \"flashvars\" attribute like this: ... flashvars=\"xml=my_path/my_xml_file.xml\" ... if you use it as embed, or <param name=\"flashvars\"
value=\"xml=my_path/my_xml_file.xml\" /> if you use it as an object. When editing the xml file you should know that the tag for a submenu item is <menu>. It has two attributes, \"label\" wich sets his label, and \"url\". Except the time when the menu is actualy the root of the multilevel menu, on click, it will show the other submenus that rezide in it. You should notice that the top menu item has the same name as the parent and on click it opens the url specified in the parent\'s \"url\" attribute. So the first item represent the actual parent of all the following items. A simple menu entry, wich takes you to an url when clicked, has the tag <url> with the same two attributes, \"label\" and \"url\".
3. Setting sizes for the Multilevel Menu
When you put the menu in your html file, you can set any width and height you desire for your movie clip, and it will stretch to fit those sizes. When there are many menu items and it cannot fit into those sizes, a scrollbar will appear.
Note: The Menu Items who will take you to a subitem have a little arrow on the right (those who will take you to an url don\'t have one). |