# CCActionScaleTo Class Reference

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

## Overview

This action scales the target to the specified factor value.

Note: This action doesn’t support “reverse”

## Tasks

- `+ actionWithDuration:scale:`
- `– initWithDuration:scale:`
- `+ actionWithDuration:scaleX:scaleY:`
- `– initWithDuration:scaleX:scaleY:`

## Class Methods

### actionWithDuration:scale:

Creates the action with the same scale factor for X and Y.

`+ (id)actionWithDuration:(CCTime)duration scale:(float)s`

#### Parameters

duration

  Action duration.

s

  Scale to scale to.

#### Return Value

New scale action.

#### Declared In

`CCActionInterval.h`

### actionWithDuration:scaleX:scaleY:

Creates the action with individual scale factor for X and Y.

`+ (id)actionWithDuration:(CCTime)duration scaleX:(float)sx scaleY:(float)sy`

#### Parameters

duration

  Action duration.

sx

  X scale to scale to.

sy

  Y scale to scale to.

#### Return Value

New scale action.

#### Declared In

`CCActionInterval.h`

## Instance Methods

### initWithDuration:scale:

Initializes the action with the same scale factor for X and Y.

`- (id)initWithDuration:(CCTime)duration scale:(float)s`

#### Parameters

duration

  Action duration.

s

  Scale to scale to.

#### Return Value

New scale action.

#### Declared In

`CCActionInterval.h`

### initWithDuration:scaleX:scaleY:

Initializes the action with individual scale factor for X and Y.

`- (id)initWithDuration:(CCTime)duration scaleX:(float)sx scaleY:(float)sy`

#### Parameters

duration

  Action duration.

sx

  X scale to scale to.

sy

  Y scale to scale to.

#### Return Value

New scale action.

#### Declared In

`CCActionInterval.h`