How to use
You can fully use the Accordion Tree Menu by editing the provided XML file using any text editor (such as Notepad for example). This will allow you to edit all the parameters.
You can create an application with the Accordion Tree Menu in one of the following ways:
In this case, you will need Macromedia Flash 8 or Adobe Flash CS3/CS4 software. The following files are required (included in the package):
- AccordionTreeMenu.fla;
- AccordionTreeMenu.as;
- menu.xml.
Edit the parameters in the XML file (menu.xml) according to your needs. Open the source FLA file (AccordionTreeMenu.fla) and publish the Flash document with appropriate name.
In this case, you will need Macromedia Flash 8 or Adobe Flash CS3/CS4 software. The following files are required (included in the package):
- AccordionTreeMenu.fla;
- AccordionTreeMenu.as;
- menu.xml.
Edit the parameters in the XML file (menu.xml) according to your needs. Open the source FLA file (AccordionTreeMenu.fla) and the destination FLA file. Drag the "Accordion Tree Menu" folder from the source document library onto the Stage of the destination document. Delete the copied assets from the Stage. Select the "AccordionTreeMenu" symbol (Movie Clip) in the Library panel in the destination document and drag it onto the Stage. When publishing the Flash document, note that the ActionScript file — AccordionTreeMenu.as — must be in the same directory with the destination FLA file.
In this case, you don't need Flash software or any programming knowledge. The following files are required (included in the package):
- menu.swf;
- menu.xml.
Edit the parameters in the XML file (menu.xml) according to your needs.
If you need to change the name of the XML file, you can easily do it. Just open the AccordionTreeMenu.as file (before publishing the Flash document) and replace "menu.xml" with the name of your XML file. You can also specify the name for the XML file when embedding the Accordion Tree Menu into HTML page.
Below is the code that describes how to embed the Accordion Tree Menu using SWFObject 2:
| |
<head>
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
var flashvars = {xmlURL: "menu.xml"};
var params = {};
var attributes = {};
swfobject.embedSWF("menu.swf", "menu", "290", "800", "8.0.0", false, flashvars, params, attributes);
</script>
</head>
<body>
<div id="menu">
<a href="http://www.adobe.com/go/getflashplayer">
<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player">
</a>
</div>
</body>
|
|