How to play an animation


Playing an animation

To play an animation, the functions on the AGAnimationUtils object can be used with the IAGAnimationPlayer interface. Also, by using the AGAnimationUtils object, you can stop, pause, and record animations. Animation playing honors the animation environment settings.
The following code example shows how to play animations:
[C#]
private void Play_Animation()
{
    //Get the animation extension. 
    IAnimationExtension animExt;
    animExt = GetAnimationExtension();

    //Play the animation using the IAGAnimationPlayer interface. 
    IAGAnimationPlayer animPlayer;
    animPlayer = new AGAnimationUtils();
    animPlayer.PlayAnimation(animExt.AnimationTracks, animExt.AnimationEnvironment,
        null);
}
[VB.NET]
Private Sub Play_Animation()
    'Get the animation extension.
    Dim animExt As IAnimationExtension
    animExt = GetAnimationExtension()
    'Play the animation using the IAGAnimationPlayer interface.
    Dim animPlayer As IAGAnimationPlayer
    animPlayer = New AGAnimationUtils
    animPlayer.PlayAnimation(animExt.AnimationTracks, animExt.AnimationEnvironment, Nothing)
End Sub


See Also:

How to set the animation environment




Development licensing Deployment licensing
ArcGIS for Desktop Basic ArcGIS for Desktop Basic
ArcGIS for Desktop Standard ArcGIS for Desktop Standard
ArcGIS for Desktop Advanced ArcGIS for Desktop Advanced