A SERVICE OF

logo

11
Chapter 2
• • • • • •
Using MediaScript
All MediaRich image templates are written in MediaScript, an interpreted scripting
language based on the ECMAScript Language Specification, 3rd edition (which, in turn, is
based on Netscape's JavaScript and Microsoft's JScript). By building on top of a widely
known scripting language, MediaScript can offer all of the flexibility of a full programming
language while remaining easy to use.
MediaScript supports all of ECMAScript's syntax and objects while adding several new
objects and language enhancements. This chapter only describes those features unique to
MediaScript; for a detailed description of the basic language, see the ECMAScript
Language Specification (available at
http://www.ecma.ch/ecma1/STAND/ECMA-
262.htm
) or one of the many available JavaScript references.
Chapter Summary
The Media Object 12
Preprocessor Directives 12
Named Arguments 13
File Systems 14