The Scripting Reference is organized by classes. For example, it contains a section on the DAImage class. Each class contains a description of its functions, including syntax, returned values, and how to use the function. At the end of each class, there is a list of functions that, while relevant to that particular class, are included in the DAStatics library. This library is very large, and it might be easier to familiarize yourself with its contents by looking at specific classes and seeing what DAStatics functions are pertinent. When parameters are described as animated numbers, this means they must be of type DANumber, not that they must necessarily change over time.
All of the methods and properties in the Scripting Reference are accessible through C++. For information, see Using the Scripting Reference in C++ Programming.
This introduction contains the following topics.
Syntax and terminology found in this reference are based on Microsoft® Visual Basic® Scripting Edition (VBScript) conventions. However, there are only a few simple differences between VBScript and Microsoft JScript. Those differences that pertain directly to Microsoft DirectAnimation® are:
JScript distinguishes between methods which are always associated with objects; functions which are not always associated with objects; and properties which are analagous to Microsoft Visual Basic® properties.
// This is VBScript Set myPt = CreateObject("DirectAnimation.DAPoint2") // This is JScript myPt = new ActiveXObject("DirectAnimation.DAPoint2");
The MeterLibrary and the PixelLibrary set the unit of measurement to meters or pixels respectively. Both return the DAStatics object, so, to gain access to that library, one of these libraries must be chosen. There are two important differences between the libraries (other than the obvious one of different units of measurement). They are:
Top of Page
© 2000 Microsoft and/or its suppliers. All rights reserved. Terms of Use.