{mdm}Script 2.0 Usage


 

For a step-by-step guide on how to get started with {mdm}Script™ 2.0, please follow the QuickStart Guide.

 

{mdm}Script™ 2.0 follows a true Object Oriented Apporach to Programming (OOP) so that it is more closely linked to ActionScript and familiar to Flash Developers/Designers. The {mdm}Script™ 2.0 API consisits of Classes, Methods, Properties and Events for each Command Set. Definitions of these categories are provided below:

 

Object Oriented Programming

 

A way of programming that introduces real world concepts such as objects to programming. This helps the programmer manage and scale thier code in a much more efficient manner.

 

An Object

 

An Object is a collection of methods and properties bundled together in a related fashion. For Example, a Box Object has properties such as width, depth and height, and methods such as close, open, unpack etc.

 

A Class

 

A Class is the definition of an Object. A Class is not an Object itself, but instead it acts as a blueprint for an Object. So in the case of a Box, when we create a Box, we need to know what kind of box we are making. So a Class for a box is used every time we are creating a new Box. For example: myBox = new Box();

 
A Method

 

Methods can be thought of as verbs, so if you want a Box object to close you tell it to close: Box.close(); Similarily, if you want to tell the Box object to open: Box.open();

 

A Property

 

Properties can be thought of as qualities or single features which can be set or read directly from the object. For example: Box.width = 100;

 

An Event

 

An event is something that occurs, causing a reaction. For example: Box.onOpen() - This is an event for the Box object which reacts when the Box is opened.