FSCommand Usage


 

NOTE: FSCommand Usage is now deprecated. It is still available in Zinc™ v2.5 to provide backwards compatibility but should not be exclusively used for new projects. This chapter is included as a point of reference on FSCommand Implementation. All new Zinc™ v2.5 Projects should be scripted with {mdm}Script™ 2.0.

 

 

Step 2 - FSCommand Syntax (literal)

 

You can now type your command directly into the Flash Actionscript Syntax Window. The command name is entered first, followed by the command parameter(s). The command name and parameters must be placed within the brackets, as shown below:

 

fsc_usage_03

 

In the example above, we have used the FSCommand "mdm.prompt" which is used to display a Prompt Dialog with a custom message. This FSCommand only has one parameter which is the custom message for the dialog to display.

 

Notice that our custom message ("Hello World") has the characters \" before and after it. This is required as Zinc™ v2 FSCommands can support multiple parameters, whilst standard Flash FSCommands cannot. The \" characters are used to "escape" the quotations in Adobe Flash so that multiple parameters can be parsed correctly.

 

Continue to Step 3