Command Line Parameters


 

Step 1

 

Create a new file in Adobe Flash (or your preferred SWF Authoring tool) and add a button with the following code:

 

 

       on (release) {

               cmdParam1 = mdm.Application.getCMDParams(1)

               mdm.Dialogs.prompt(cmdParam1)

       }

 

 

This code has two parts: The first command retrieves the first command line parameter (which is always assigned the id "1") and returns it to the variable cmdParam1. The second part of the code executes a prompt to display the value of cmdParam1.

 

Export your SWF and then compile a Projector using Zinc™ v2.5.

 

Continue to Step 2