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.
To construct a simple DirectAnimation control in VBScript:
<OBJECT ID="DAMyCtl" STYLE="position:absolute; left:30%; top:100;width:300;height:300" CLASSID="CLSID:B6FFC24C-7E13-11D0-9B47-00C04FC2F51D"> </OBJECT>
<SCRIPT LANGUAGE="VBScript"> <!--
Set m = DAMyCtl.PixelLibrary
or
Set m = DAMyCtl.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.
DAMyCtl.Image = m.SolidColorImage(m.Blue)
DAMyCtl.Start
--> </SCRIPT>
Top of Page
© 2000 Microsoft and/or its suppliers. All rights reserved. Terms of Use.