# SWFAction->__construct()

(PHP 5)

SWFAction->__construct() — Creates a new SWFAction

### Description

SWFAction
SWFAction __construct ( string `$script` )
Warning

This function is EXPERIMENTAL. The behaviour of this function, the name of this function, and anything else documented about this function may change without notice in a future release of PHP. Use this function at your own risk.

Creates a new SWFAction and compiles the given `script` in it.

### Parameters

`script`

  An ActionScript snippet to associate with the SWFAction. See SWFAction for more details.