Creates a DANumber object that represents an animated number. This means the value of the object can vary over time.
This class inherits from the DABehavior class.
Allows control properties to be animated (vary over time). This function forms fragments of script and passes them to the scripting engine on every frame. For example, a DANumber object can be attached to the width property of a frame on an HTML page. When the invoke parameter is FALSE, the property is set directly as shown in this fragment from the JScript sample in JScript\Exercises\AnimatedGlow.html:
glow.AnimateProperty("DAControl.Filter[0].strength", "JScript", false, .08));
If the invoke parameter is TRUE, then a function name should be specified in the string parameter (property) and is invoked as shown in this fragment from the JScript sample in JScript\Templates\AnimatedProperties.html:
filterMethod = getNumber().AnimateProperty("SetFilter", "JScript", true, .1);
numberObj.AnimateProperty(
property,
language,
invoke,
update
)
Returns the DANumber object.
Extracts the value of numberObj, returning a number (a double). The object must have a constant value.
numberObj.Extract
Returns a number (a double).
Converts a DANumber object to a DAString object.
numberObj.ToStringAnim(
a
)
Returns the DAString object.
Converts a double to a DAString.
numberObj.ToString(
a
)
Returns the DAString object.
The following functions are defined in the DAStatics class and are most relevant for objects of type DANumber.
lib.InterpolateAnim(from, to, duration)
lib.Interpolate(from, to, duration)
lib.NumberBSpline(degree, knots, control_elements, weights, evaluation)
lib.SlowInSlowOut(from, to, duration, acceleration)
lib.SlowInSlowOutAnim(from, to, duration, acceleration)
The following properties are defined in the DAStatics class and are most relevant for objects of type DANumber.
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.