|
{mdm}Script 1.0 Usage - Step 3 |
|
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 3 - {mdm}Script™ Syntax (var)
{mdm}Script™ , just like FSCommands, can be used using "literal" parameters or "variables". A literal entry is where the parameters are entered directly into the syntax like the example in Step 2. When using literal parameters you cannot change the values during runtime.
Using variables instead of literal values offers more functionality. To use variables, you simply declare a variable first, and then execute the command in the same manner:
message = "Hello World";
mdm.prompt(message);
As you can see, the parameter does not require quotes as we are now referencing a variable (in this case, the variable is called message).
Conclusion
Using either method, export a SWF and compile using Zinc™ v2. When you launch your Projector, the {mdm}Script™ Command will execute a Prompt Dialog.