DirectAnimation Animated Header --DAArray Class DirectAnimation Animated Header --DAArray Class* Microsoft DirectAnimation SDK
*Contents  *Index  *Topic Contents
*Previous Topic: Scripting Reference Introduction
*Next Topic: DABbox2 Class

DAArray Class


A DAArray object holds other objects that can be selected based on an index that can either vary over time or not.

This class inherits from DABehavior

DAArray Functions

bullet1.gifLength

bullet1.gifNthAnim


Length

DAArray Class

Finds the length of a DAArray object.

arrayObj.Length( )

Return Values

Returns a DANumber object.


NthAnim

DAArray Class

Selects a DABehavior object based on the value of a (a DANumber). It uses the greatest integer value less than the number's value to determine the index. An array's index begins at 0 and any attempt to index beyond its length results in a run-time error.

arrayObj.NthAnim(
  a
  )

Parameters
a
The DANumber object used as a time-varying index into the array.
Return Values

Returns the DABehavior object.

Relevant Functions from DAStatics

The following functions are defined in the DAStatics class and are most relevant to objects of type DAArray:

lib.DAArray

lib.UninitializedArray()

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

*Top of Page