Retrieves the frame rate in frames per second of the Flash movie generated from a chart object.

object.GetFrameRate 

Arguments

object
Required. A Chart object.

Return Value

The GetFrameRate method returns an integer value that identifies the final frame rate in frames per second of the Flash movie generated from a chart object (see ExportAsResponse Method and ExportAsFile Method for generating a Flash movie).

Loading chart graphical settings from a style file via the method LoadStyle sets the frame rate of the Flash movie with the frame rate value stored in the settings file.

VBScript Sample Code

The following VBScript code illustrates use of the GetFrameRate method in an ASP page.

chart.SetSeparators ";", true
chart.SetDataFromQuery
chart.LoadStyle "C:\myStyle.scs"

'Retrieve movie frame rate set by the call of LoadStyle method 
fps= chart.GetFrameRate

'We want a movie with a minimum frame rate of 12 frames per second 
If fps < 12 Then
 chart.SetFrameRate 12
End If

chart.ExportAsResponse

See Also

SetFrameRate Method | GetTitle Method | GetSubtitle Method | GetWidth Method | GetHeight Method

Applies To: Chart Object