|
Custom File Menu |
|
Step 2
We will now add the {mdm}Script™ Commands to create the actual File Menu structure. This is the basic structure that all File Menu's adhere to:

The above example is a screenshot of the File Menu from Notepad. The entries across the top are referred to as "File Menu Headers", and the sub-entries are "File Menu Items". These are the terms used within {mdm}Script™ to construct Custom File Menus.
Add the following code:
mdm.Menu.Main.insertHeader("File");
mdm.Menu.Main.insertItem("File", "Menu Item Here");
mdm.Menu.Main.insertItem("File", "Another Menu Item");
stop();
The first Command creates a new File Header entry called FILE. The next 2 Commands assign sub entries (File Menu Items) to the FILE Header. We have also placed a stop action at the end to stop the playhead at Frame 1.