---
name: "SWF::Action"
section: "3pm"
platform: "linux"
package: "libswf-perl"
version: "1:0.4.4-1.1"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/SWF::Action"
---

# SWF::Action(3pm)

SWF action class

## NAME

SWF::Action - SWF action class

## SYNOPSIS

```
        use SWF::Action;
        my $action = new SWF::Action($script);
```

## DESCRIPTION

SWF::Action is an object for storing an action.

## METHODS

- new SWF::Action($script)

  Compiles `$script` and returns an SWF::Action object. The script is a text string expected, according ActionScript syntax.

- $result = $actionObject-\>compile($versionX)

  Recompile object using syntax of versionX.  (Some differences exists between values 4 and 5.) The result return value will be 0 on successful compiling.

## AUTHOR

Soheil Seyfaie (soheil@netcom.ca) and developers of ming at ming.sourceforge.net

## SEE ALSO

SWF, SWF::Button, SWF::Movie, SWF::MovieClip, SWF::InitAction
