VBScript Samples

This section describes the Microsoft® Visual Basic® Scripting Edition (VBScript) Samples included with Microsoft® DirectAnimation®. Click any link to display the sample.

This section describes the following types of samples.

VBScript Templates

The VBScript template samples are in the DXMedia\Samples\Multimedia\DAnim\VBScript\Templates folder. The following table lists the available VBScript templates and the concepts that they illustrate (click any link to display the sample).

VBScript template nameDescription
HelloWorldVBS.html The HelloWorld VBScript sample demonstrates basic text animation as a windowless control.
Basic.html The Basic VBScript sample demonstrates a simple animation (rotating oval) using the core DirectAnimation library. This is useful as a starting point for writing new content.
BasicDS.html The BasicDS VBScript sample is the same animation as Basic but written using the drawing surface API, which has a slightly different style.
SplineLogo.html The SplineLogo VBScript sample demonstrates a spline that is used both as a boundary of a shape and as an animation path.
Callback.html The Callback VBScript sample demonstrates how to use a scripting callback with two buttons and a piece of HTML text. Pressing the buttons animates the buttons in 3-D, emits a sound, and moves the HTML text in the direction the button indicates.
AnimatedProperties.html The AnimatedProperties VBScript sample demonstrates animated strings, numbers, and script callbacks.
Movie.html The Movie VBScript sample demonstrates how to play a movie.
ButtonSwitch.html The ButtonSwitch VBScript sample demonstrates how to use modifiable behaviors and buttons.
ScrollSwitch.html The ScrollSwitch VBScript sample demonstrates how to use modifiable behaviors and scroll bars.
AudioMixing.html The AudioMixing VBScript sample demonstrates how to mix audio. The volume and panning of three sounds are controlled by the positions of the scroll bars. You must have Internet Explorer 5 to run this sample.

VBScript Showcase Samples

The VBScript showcase samples are in the DXMedia\Samples\Multimedia\DAnim\VBScript\Showcase folder. The following table lists the available VBScript showcase samples and the concepts that they illustrate (click any link to display the sample).

VBScript showcase nameDescription
Curves.html The Curves VBScript sample demonstrates time-varying cubic B-spline curves that are used to clip an image whose opacity is also time-varying. The end result is a windowless control on top of HTML text.
Runners.html The Runners VBScript sample demonstrates instantiating and sequencing two structured graphics models.
Coffee.html The Coffee VBScript sample demonstrates how to use montages (2.5-D images).
Pick3.html The Pick3 VBScript sample demonstrates animated and interactive 3-D .x models rendered as windowless controls over the HTML page.
Clock.html The Clock VBScript sample demonstrates time-accurate animation of a clock with a radially filled background.
MsCubes.html The MsCubes VBScript sample constructs 3-D animated cubes with motion GIF texturing. A mouse click stops and starts one aspect of the animation.
DancingTrapzoids.html The DancingTrapzoids VBScript sample shows rectangles with time-varying colors that chase each other along a trajectory.

Top of Page Top of Page
© 2000 Microsoft and/or its suppliers. All rights reserved. Terms of Use.