|
Reference
addMenu(label [,href, href_target])
returns MenuID
label: the text you want to show on the menu button
href: the action you want to take when the menu button is clicked (optional). This is either an URL or a ActionScript function (give full structure if it's not in _root)
href_target: the target for href, or "AShandler" if you want to call an ActionScript function
addSubMenu(menuID, label [,href, href_target])
menuID: the zero-based menu you want to add this sub-menu link
label, href and href_target are the same as with addMenu()
setDataProvider(xml)
xml: XML object that contains the menu information ( sample XML file)
hideMenu()
hides the current displayed menu or does nothing if no menu is shown. You can use this function to hide the menu if you are controlling your flash movie with fsMenu.
Set up a movie-sized button instance in the background that refers to hideMenu() if you want the menu to be hidden if someone clicks outside of the menu.
for maximum flexibility, you create the horizontal menu bar yourself, the component adds the buttons and the submenus.
If you have problems with special characters, write System.useCodepage = true at the very top of your first frame.
|

To use fsMenu in your Flash project, drag an instance from the Components panel (press Ctrl-F7 if you can't see it) to your stage. 
You draw the menu bar yourself. Create a layer in the timeline and move it below the one your component is on. 
Hide the layer with the component (Timeline panel, click on the dot in the column with the eye) 
Now you can draw the bar, use the rectangle tool or the rounded rectangle tool. 
Make the layer with the component on visible in order to change its properties. 
Press Alt-F7 to display the Component Inspector where you can change many of the parameters. 
Finally, you need to write some ActionScript to populate the menu. Press F9 while having selected the frame where the component is on (Timeline) 
Write the code according to the samples or reference on the top.
Gianni Frey is a ColdFusion, C#, and Flash Programmer, and a Layout Designer. He currently studies Computer Science at ETH Zurich. gianni@frogstyle.ch
|