Creative FL Drop Down Menu Documentation |
|||
| Creative FL Drop Down Menu > Working with Drop Down Menus > The General Tab > How to Create a Menu Structure using XML | |||
The menu structure can also be defined using an XML file. The XML file will contain a <menu> tag that holds <button> tags. Each <button> tag corresponds to a button in the menu. Submenus are defined by adding <button> tags inside other <button> tags. For example:
<menu> <button text="Home" url="http://extendstudio.com" target="_self" id="HOM"/> <button text="Products" url="http://extendstudio.com" target="_self" id="PRD"> <button text="Movie FX" url="http://extendstudio.com" target="_self" id="MFX" selected="true"/> <button text="Text FX" url="http://extendstudio.com" target="_self" id="TFX"/> </button> <button text="Contact" url="http://extendstudio.com" target="_self" id="CON"/> </menu>
The <menu> tag has no properties. It just holds the main buttons.
The <button> tag has the following properties:
text – the button label
url – the URL for the button. If you want to use an AS function instead you just have to add "as:" before the function name
target – the link target (only used if a button has an URL – default is _self)
id – the ID of the button (optional; you can read more about IDs in the Advanced Button Actions section)
selected – if set to “true” the button is initially selected
Once you have created the XML file you just have to fill the "XML file path" parameter in the General tab with the path to your XML file. If you are using XML the visually defined menu structure is disregarded (you cannot use both at the same time).
See also:
The General Tab, The Layout Tab, The Animations Tab, The Text Tab, The Presets Tab, The Preview Window , The Advanced Resizing Window.
|
|||