# CCActionProgressFromTo Class Reference

Inherits from | CCActionInterval : CCActionFiniteTime : CCAction : NSObject
Conforms to | NSCopying
Declared in | CCActionProgressTimer.h

## Overview

This action is for use with the CCProgressNode to control the progression from and to animation.

## Tasks

- `+ actionWithDuration:from:to:`
- `– initWithDuration:from:to:`

## Class Methods

### actionWithDuration:from:to:

Creates a progress action.

`+ (id)actionWithDuration:(CCTime)duration from:(float)fromPercentage to:(float)toPercentage`

#### Parameters

duration

  Action duration.

fromPercentage

  Percentage to start from.

toPercentage

  Percentage to end at.

#### Return Value

New progress action.

#### Declared In

`CCActionProgressTimer.h`

## Instance Methods

### initWithDuration:from:to:

Initializes a progress action.

`- (id)initWithDuration:(CCTime)duration from:(float)fromPercentage to:(float)toPercentage`

#### Parameters

duration

  Action duration.

fromPercentage

  Percentage to start from.

toPercentage

  Percentage to end at.

#### Return Value

New progress action.

#### Declared In

`CCActionProgressTimer.h`