Peter Liscovius > SWF-0.4.0-beta6_02 > SWF::Button

Download:
SWF-0.4.0-beta6_02.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Source  

NAME ^

SWF::Button - SWF button class

SYNOPSIS ^

 use SWF::Button;

DESCRIPTION ^

Creates buttons for flash movies.

METHODS ^

new SWF::Button();

Creates a new Button object.

$button->addShape($shape, FLAG);

Adds $shape to the button. Valid FLAGs are:

    SWFBUTTON_HIT
    SWFBUTTON_UP
    SWFBUTTON_DOWN
    SWFBUTTON_OVER
$button->setOver($shape);

Shortcut for $button->addShape($shape, SWFBUTTON_OVER);

$button->setHit($shape);

Shortcut for $button->addShape($shape, SWFBUTTON_HIT);

$button->setUp($shape);

Shortcut for $button->addShape($shape, SWFBUTTON_UP);

$button->setDown($shape);

Shortcut for $button->addShape($shape, SWFBUTTON_DOWN);

$button->setAction($action [,FLAG]);

Adds $action object (see SWF::Action). Valid FLAGs are:

    SWFBUTTON_MOUSEUP
    SWFBUTTON_MOUSEOVER
    SWFBUTTON_MOUSEOUT
    SWFBUTTON_MOUSEDOWN
    SWFBUTTON_DRAGOVER
    SWFBUTTON_DRAGOUT

SWFBUTTON_MOUSEUP is the default value of FLAG.

$button->setMenu(0|1);

Parameter is 0 (off) or 1(on). Can be used for a slight different behavior of buttons.

AUTHOR ^

wrapper written by

Soheil Seyfaie (soheil at users dot sourceforge dot net) Peter Liscovius (peterdd at users dot sourceforge dot net)

and many others.

SEE ALSO ^

SWF, SWF::Action, SWF::Shape, SWF::Movie, SWF::MovieClip

syntax highlighting: