Specifies the frame rate of the Flash movie generated from a chart object.

    object.SetFrameRate framerate

#### Arguments

object
  Required. A Chart object.
framerate
  Required. An integer value that specifies the frame rate in frames per second of the Flash movie.

#### Return Value

The SetFrameRate method specifies the frame rate in frames per second of the final Flash movie generated from a chart object. That is the number of frames displayed per second in the movie.

Loading a chart style with the LoadStyle method sets the frame rate to the value stored in the style file.

#### VBScript Sample Code

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

    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

GetFrameRate Method | SetTitle Method | SetSubtitle Method | SetWidth Method | SetHeight Method

Applies To: Chart Object