# CCActionBlink Class Reference

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

## Overview

This action performs a blinks effect on the target.

## Tasks

- `+ actionWithDuration:blinks:`
- `– initWithDuration:blinks:`

## Class Methods

### actionWithDuration:blinks:

Creates the blink action.

`+ (id)actionWithDuration:(CCTime)duration blinks:(NSUInteger)blinks`

#### Parameters

duration

  Action duration.

blinks

  Number of times to blink.

#### Return Value

New blink action.

#### Declared In

`CCActionInterval.h`

## Instance Methods

### initWithDuration:blinks:

Initializes the blink action

`- (id)initWithDuration:(CCTime)duration blinks:(NSUInteger)blinks`

#### Parameters

duration

  Action duration

blinks

  Number of times to blink

#### Return Value

New blink action

#### Declared In

`CCActionInterval.h`