The Microsoft® DirectAnimation® library works with the DirectAnimation integrated-media control (DAViewerControl). Library calls are made through a scripting language, such as Microsoft® JScript® or Microsoft® Visual Basic® Scripting Edition (VBScript), to construct an animation and play it from an HTML file.
The following steps show how to construct a simple DirectAnimation control in JScript.
<DIV ID=controlDiv> <OBJECT ID="DAControl" STYLE="position:absolute; left:10; top:10;width:500;height:450" CLASSID="CLSID:B6FFC24C-7E13-11D0-9B47-00C04FC2F51D"> </OBJECT> </DIV>
<SCRIPT LANGUAGE="JScript"> <!--
m = DAControl.PixelLibrary;
m = DAControl.MeterLibrary;
The variable m is shorthand for the DAStatics Library. Every function and property that is in that library needs to be preceded by this variable so the interpreter knows where to find it.
DAControl.Image = m.SolidColorImage(m.Blue);
or
DAControl.Start();
//--> </SCRIPT>
Top of Page
© 2000 Microsoft and/or its suppliers. All rights reserved. Terms of Use.