## Scripting Cookbook

The Scripting Cookbook is a collection of samples designed to introduce you to the rudiments of scripting in Microsoft® DirectAnimation™. Each sample is written in JScript and illustrates a single concept, such as displaying text or drawing rectangles. The HTML source code is heavily commented. To see the HTML source code, right-click the title above the Show button and choose View Source from the menu that appears.

Don't be afraid to experiment. Try changing the values in the samples to see what happens. It is assumed that you are already familiar with JScript and elementary programming concepts such as functions and arrays. Also, be sure to look at the simple scripting exercises in the JScript\exercises directory. These are complementary to the material in this section.

3-D Cube

Arcs

Button

Matte

Opacity

Pies

Rectangles

Rotations

Text

Vectors

© 1997 Microsoft Corporation. All rights reserved. Terms of Use.