# CCActionFlipX Class Reference

Inherits from | CCActionInstant : CCActionFiniteTime : CCAction : NSObject
Declared in | CCActionInstant.h

## Overview

This action flips the target in x direction.

## Tasks

### Creating a CCActionFlipX Object

- `+ actionWithFlipX:`

### Initializing a CCActionFlipX Object

- `– initWithFlipX:`

## Class Methods

### actionWithFlipX:

Creates a flip action with x direction flipped or non flipped.

`+ (id)actionWithFlipX:(BOOL)x`

#### Parameters

x

  Defines if target is flipped.

#### Return Value

The flip action object.

#### Declared In

`CCActionInstant.h`

## Instance Methods

### initWithFlipX:

Initializes a flip action with x direction flipped or non flipped.

`- (id)initWithFlipX:(BOOL)x`

#### Parameters

x

  Defines if target is flipped.

#### Return Value

An initialized flip action object.

#### Declared In

`CCActionInstant.h`