STF.setFrameRate()

Availability

SupportPCMacPackage
ActionScript 3.0

3.9.2

3.9.2

stm.screentime.STF

ActionScript 2.0

3.2

3.2

global

  * Add the Screentime screensaver component to your Flash FLA or Flex project before using Screentime classes.

Usage

STF.setFrameRate(frameRate:Number) : Void

Parameters

frameRate - New frame rate - frames per second.

Returns

Nothing.

Description

Method; Sets a new animation frame rate. This method can be used to reduce the animation frame rate when a high frame rate is no longer necessary.

ActionScript 3.0 Example:

The following example changes the animation frame rate to 8 fps.

import stm.screentime.STF;

STF.setFrameRate(8);

ActionScript 2.0 Example:

The following example changes the animation frame rate to 8 fps.

STF.setFrameRate(8);

Code Examples

Internet and System APIs