Overview of the Perl Interface

The Perl interface consists of 14 modules in the SWF namespace:

SWF::Movie

This module implements a top-level timeline as a Movie object.

SWF::Sprite

Also called a MovieClip, a Sprite object is an encapsulated movie that can be combined with other Sprites on a Movie timeline.

SWF::DisplayItem

Once an object has been placed on the Stage of a Movie, the instance of that object can be manipulated as a DisplayItem.

SWF::Shape

This is a reusable vector shape object.

SWF::Button

A button is an object that defines shapes within a frame that can respond to mouse and keyboard events.

SWF::Bitmap

An image can be read from a file and placed as a Bitmap object within the Movie.

SWF::Text

The Text object allows you to draw strings on a frame.

SWF::TextField

A TextField can be used for interactive forms or for boxes of text that need to be dynamically updated.

SWF::Font

A Font object describes the glyph shapes used to draw Text and TextField objects.

SWF::Fill

This is a description of one of a variety of fills that can be associated with a Shape.

SWF::Gradient

This is a description of a gradient that can be used to create a Fill object.

SWF::Morph

A Morph object represents the gradual transition between two shapes.

SWF::Sound

An MP3 can be read from a file and placed on the timeline as a Sound object.

SWF::Action

This is an object containing a block of ActionScript that can be associated with a timeline or another object.

The following example features most of Ming’s object types. The example ...

Get Perl Graphics Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.