SWF::Sprite(3pm)

SWF::Sprite3pm

Sprite (movieclip) class

Usage

        use SWF::Sprite;
        my $sprite = new SWF::Sprite();

Overview

SWF::Sprite allows you to add animated objects to your Fash movies. You may use SWF::MovieClip instead of SWF::Sprite (i.e. SWF::Sprite inherits all it's methods from SWF::MovieClip). In other words: SWF::Sprite is deprecated! Do NOT use anymore.

Methods

new SWF::Sprite();

Returns an SWF::Sprite object.

$displayItem = $sprite->add($s);

Add $s to the $sprite object and returns an SWF::DisplayItem object, i.e. $displayItem . $s may be an SWF::Shape, SWF::Text, SWF::Button, or another sprite object.

$sprite->remove($displayItem);

Removes $displayItem from the display list.

$sprite->nextFrame();

Move to the next frame of the animation.

$sprite->setFrames($i);

Sets total number of $sprite frames to $i

$sprite->labelFrame($name);

Sets frame name to $name

Releases

5 releases since Debian 3.0 (Woody); the text changed 4 times.

  1. 3.0
  2. 4.0
  3. 5.0
  4. 6.0
  5. 7

Author

Soheil Seyfaie ([email protected]).

From libswf-perl 1:0.4.4-1.1 in Debian 7 (Wheezy). Parsed by carta from the page's man source.