Custom File Menu


 

Step 1

 

Create a new file in Adobe Flash (or your preferred SWF Authoring tool) and select the first frame of the timeline. Expand the Actionscript window and add the following code:

 

 

       mdm.Menu.Main.menuType = "frame";

 

 

When creating custom File Menus, there are three methods which can be used to handle a selected item. These methods can be either "function", "frame" or "variable".

 

When "function" is set, you can use the System Event onMenuClick_* to execute a function directly when the user clicks on a Menu Item.

 

When "variable" is set, the File menu Item(s) will set  a variable of the same name (with the prefix "menu_") to "false" as default, and "true" when clicked. For example, the menu item "Open" would set the variable "menu_Open" to "true".

 

When "frame" is set, the File menu Item(s) will move the playhead to a frame label of the same name within your movie.

 

In this example, we have the set the method to use to "frame" which means that when a menu item is selected by the user, the SWF Movie Playhead will move to a frame of the same name.

 

Continue to Step 2