ToolTipsFactory

Object Model - The Animation class - TotalTime

Returns the total playing time of the current Animation (in milliseconds).

[Visual Basic]
Public Function TotalTime() As Integer
[C#]
public int TotalTime();

Parameters

None

Return value

An Integer value with the total playing time of the Animation-object.

Description

This function returns the total playing time of the whole movie. This is actually the sum of the DisplayTimes of all AnimationFrames.  

 

'Create a new Animation...

Dim myAnimation As Animation

'...and load an existing ToolTipsFactory Animation from file.

myAnimation.Load("C:\Movies\Holidays2002.afx")

 

'Write the total playing time of the movie to

'the debug-window....

Dim totaltime As Integer

totaltime = CInt(myAnimation.TotalTime / 1000)

Debug.WriteLine("Total time: " & totaltime & " seconds.")