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 source code is heavily commented. To see it, 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.

bullet1.gif3-D Cube

bullet1.gifArcs

bullet1.gifButton

bullet1.gifHatchBackwardDiagonal

bullet1.gifHatchCross

bullet1.gifHatchForwardDiagonal

bullet1.gifMatte

bullet1.gifOpacity

bullet1.gifPies

bullet1.gifRectangles

bullet1.gifRotations

bullet1.gifText

bullet1.gifVectors

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