1.::SWF::ButtonRecord(3)User Contributed Perl Documentatio.n::SWF::ButtonRecord(3)
2
3
4

NAME

6       SWF::ButtonRecord - SWF Button Helper Class
7

SYNOPSIS

9               use SWF::ButtonRecord;
10               use SWF::Button;
11               use SWF::Constants qw(:Button);
12               # create button and a shape here..
13               # and then:
14               $buttonrecord = $button->addCharacter($my_shape, SWFBUTTON_DOWN);
15               $buttonrecord->scale(0.5,0.5);
16               $buttonrecord->move(50,50);
17

DESCRIPTION

19       Adding a character shape to an object of SWF::Button class will give
20       you access to an SWF::ButtonRecord object. This is useful for further
21       changes by using the declared methods below. So SWF::ButtonRecord
22       objects are a comparable counterpart to SWF::Displayitem objects. Just
23       like them there is no constructor method available.
24

METHODS

26       $buttonRecord->moveTo($x, $y)
27           Move ButtonRecord to ($x, $y).
28
29       $buttonRecord->move($x, $y)
30           Displace ButtonRecord by ($x, $y).
31
32       $buttonRecord->scaleTo($x ,$y)
33           Set ButtonRecord scale to $x in the x-direction and $y in the
34           y-direction.
35
36       $buttonRecord->scale($x ,$y)
37           Multiply ButtonRecord scale by $x in the x-direction and $y in the
38           y-direction.
39
40       $buttonRecord->rotateTo($degrees)
41           Set ButtonRecord rotation to $degrees.
42
43       $buttonRecord->rotate($degrees)
44           Rotate ButtonRecord by $degrees.
45
46       $buttonRecord->skewX($x)
47           Add $x to the current x-skew.
48
49       $buttonRecord->skewXTo($x)
50           Set x-skew to $x. 1.0 is 45-degree forward slant. More is more
51           forward while less is more backward.
52
53       $buttonRecord->skewY($y)
54           Add $y to the current y-skew.
55
56       $buttonRecord->skewYTo($y)
57           Set y-skew to $y. 1.0 is 45-degree upward slant. More is more
58           upward while less is more downward.
59
60       $buttonRecord->setDepth($depth)
61           Set Z-order of ButtonRecord to $depth.
62
63       $buttonRecord->setBlendMode($mode)
64           Set an alternative blend mode instead of default alpha blend.
65           Possible modes are SWFBLEND_MODE_NORMAL, SWFBLEND_MODE_LAYER etc.
66
67       $buttonRecord->addFilter($filter)
68           Process the ButtonRecord object thru a prepared filter: an object
69           of SWF::Filter class, e.g. BlurFilter or DropShadowFilter.  Filters
70           are available since player version 8.
71

AUTHOR

73       developers of ming ming.sourceforge.net, Albrecht Kleine
74

SEE ALSO

76       SWF, SWF::Button, SWF::DisplayItem, SWF::Filter, SWF::Movie,
77       SWF::MovieClip
78
79
80
81perl v5.32.0                      2020-07-28           .::SWF::ButtonRecord(3)
Impressum