Creating an Extension


 

Step 4

 

Create a new file in Adobe Flash (or your preferred SWF Authoring tool) and add a button with the following code which has been copied from the Command Tester:

 

 

       on (release) {

               myResult = mdm.Extensions.KERNEL32.Beep("1000","1000");

       }

 

 

All Custom Commands created with the Extension Creator always follow this format: mdm.Extensions.CUSTOMCLASS.DLLFUNCTION()

 

In this case, the CUSTOMCLASS name is "KERNEL32" and the DLLFUNCTION name is "Beep". Please Note that these items are case sensitive, so be sure to enter the command exactly as it is shown in the Extension Creator.

 

Create a Dynamic Text box on the canvas and label it "myResult" and export your SWF movie.

 

Continue to Step 5