Flash XML menu
This exmple creates a scrolling list of buttons and assigns a url to each. The menu is described by an XML file which is imported when the movie loads.

Overview
The XML file contains a a list of <item> nodes all indside of a top level <menu> node. Each item node describes a button to be added to the menu. Each item node has an attribute name url which stores the url to the image to be loaded. The text node of each item node (the text between <item> and </item>) will be the text displayed on the button.

MovieClips
The movieClips used in this example should keep the names that I have assigned them. Here's a list:

  • drag_mc the dragger for the scroll bar.
  • track_mc the track of the scroll bar.
  • menu_mc an empty movie clip all of the buttons are loaded into this clip via attachMovie().
  • content_mc an empty movie clip, here is where all of the images are loaded.

Notes
Button Symbol: since this clip is attached to the stage with attach movie you will need to open the Linkage options for this symbol in the library and set the Export for Actionscript option.
Progress Bar: since this symbol will be attached to the stage by the loader you will need to set the Export for actionscript option in the Linkage dialog box for this symbol also.
Button Symbol text: the text field withing the Button symbol needs to have the Embed Font outlines option set since it will be displayed from a layer that is masked. If not the text on the buttons will not be visible.