1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159
|
<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>SWF::ButtonRecord - SWF Button Helper Class</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:feedback@suse.de" />
</head>
<body style="background-color: white">
<!-- INDEX BEGIN -->
<div name="index">
<p><a name="__index__"></a></p>
<ul>
<li><a href="#name">NAME</a></li>
<li><a href="#synopsis">SYNOPSIS</a></li>
<li><a href="#description">DESCRIPTION</a></li>
<li><a href="#methods">METHODS</a></li>
<li><a href="#author">AUTHOR</a></li>
<li><a href="#see_also">SEE ALSO</a></li>
</ul>
<hr name="index" />
</div>
<!-- INDEX END -->
<p>
</p>
<h1><a name="name">NAME</a></h1>
<p>SWF::ButtonRecord - SWF Button Helper Class</p>
<p>
</p>
<hr />
<h1><a name="synopsis">SYNOPSIS</a></h1>
<pre>
use SWF::ButtonRecord;
use SWF::Button;
use SWF::Constants qw(:Button);
# create button and a shape here..
# and then:
$buttonrecord = $button->addCharacter($my_shape, SWFBUTTON_DOWN);
$buttonrecord->scale(0.5,0.5);
$buttonrecord->move(50,50);</pre>
<p>
</p>
<hr />
<h1><a name="description">DESCRIPTION</a></h1>
<p>Adding a character shape to an object of SWF::Button class will give you
access to an SWF::ButtonRecord object. This is useful for further changes
by using the declared methods below. So SWF::ButtonRecord objects are
a comparable counterpart to SWF::Displayitem objects. Just like them
there is no constructor method available.</p>
<p>
</p>
<hr />
<h1><a name="methods">METHODS</a></h1>
<dl>
<dt><strong><a name="moveto" class="item">$buttonRecord->moveTo($x, $y)</a></strong>
<dd>
<p>Move ButtonRecord to ($x, $y).</p>
</dd>
</li>
<dt><strong><a name="move" class="item">$buttonRecord->move($x, $y)</a></strong>
<dd>
<p>Displace ButtonRecord by ($x, $y).</p>
</dd>
</li>
<dt><strong><a name="scaleto" class="item">$buttonRecord->scaleTo($x ,$y)</a></strong>
<dd>
<p>Set ButtonRecord scale to $x in the x-direction and $y in the y-direction.</p>
</dd>
</li>
<dt><strong><a name="scale" class="item">$buttonRecord->scale($x ,$y)</a></strong>
<dd>
<p>Multiply ButtonRecord scale by $x in the x-direction and $y in the y-direction.</p>
</dd>
</li>
<dt><strong><a name="rotateto" class="item">$buttonRecord-><code>rotateTo($degrees)</code></a></strong>
<dd>
<p>Set ButtonRecord rotation to $degrees.</p>
</dd>
</li>
<dt><strong><a name="rotate" class="item">$buttonRecord-><code>rotate($degrees)</code></a></strong>
<dd>
<p>Rotate ButtonRecord by $degrees.</p>
</dd>
</li>
<dt><strong><a name="skewx" class="item">$buttonRecord-><code>skewX($x)</code></a></strong>
<dd>
<p>Add $x to the current x-skew.</p>
</dd>
</li>
<dt><strong><a name="skewxto" class="item">$buttonRecord-><code>skewXTo($x)</code></a></strong>
<dd>
<p>Set x-skew to $x. 1.0 is 45-degree forward slant. More is more forward while less is more backward.</p>
</dd>
</li>
<dt><strong><a name="skewy" class="item">$buttonRecord-><code>skewY($y)</code></a></strong>
<dd>
<p>Add $y to the current y-skew.</p>
</dd>
</li>
<dt><strong><a name="skewyto" class="item">$buttonRecord-><code>skewYTo($y)</code></a></strong>
<dd>
<p>Set y-skew to $y. 1.0 is 45-degree upward slant. More is more upward while less is more downward.</p>
</dd>
</li>
<dt><strong><a name="setdepth" class="item">$buttonRecord-><code>setDepth($depth)</code></a></strong>
<dd>
<p>Set Z-order of ButtonRecord to $depth.</p>
</dd>
</li>
<dt><strong><a name="setblendmode" class="item">$buttonRecord-><code>setBlendMode($mode)</code></a></strong>
<dd>
<p>Set an alternative blend mode instead of default alpha blend.
Possible modes are SWFBLEND_MODE_NORMAL, SWFBLEND_MODE_LAYER etc.</p>
</dd>
</li>
<dt><strong><a name="addfilter" class="item">$buttonRecord-><code>addFilter($filter)</code></a></strong>
<dd>
<p>Process the ButtonRecord object thru a prepared filter:
an object of SWF::Filter class, e.g. BlurFilter or DropShadowFilter.
Filters are available since player version 8.</p>
</dd>
</li>
</dl>
<p>
</p>
<hr />
<h1><a name="author">AUTHOR</a></h1>
<p>developers of ming
ming.sourceforge.net,
Albrecht Kleine</p>
<p>
</p>
<hr />
<h1><a name="see_also">SEE ALSO</a></h1>
<p>SWF, SWF::Button, SWF::DisplayItem, SWF::Filter, SWF::Movie, SWF::MovieClip</p>
</body>
</html>
|