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
|
<?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>Ming - a library for generating
SWF format movies.</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:root@localhost" />
</head>
<body style="background-color: white">
<p><a name="__index__"></a></p>
<!-- INDEX BEGIN -->
<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>
<!-- INDEX END -->
<hr />
<p>
</p>
<h1><a name="name">NAME</a></h1>
<p>SWF: an autoloadable interface module for Ming - a library for generating
SWF (``Flash'') format movies.</p>
<p>
</p>
<hr />
<h1><a name="synopsis">SYNOPSIS</a></h1>
<pre>
# Don't import other modules
use SWF;</pre>
<pre>
# import all SWF modules
use SWF qw(:ALL);</pre>
<pre>
# import SWF::Shape and SWF::Movie only.
use SWF qw(Shape Movie);</pre>
<p>
</p>
<hr />
<h1><a name="description">DESCRIPTION</a></h1>
<p>By default, SWF doesn't import other SWF classes. You may, however, instruct SWF to import all modules by using the following syntax:</p>
<pre>
use SWF qw(:ALL);</pre>
<p>
</p>
<hr />
<h1><a name="methods">METHODS</a></h1>
<dl>
<dt><strong><a name="item_setscale">SWF::setScale($scale);</a></strong>
<dd>
<p>Sets scale to $scale.</p>
</dd>
</li>
<dt><strong><a name="item_getscale">SWF::getScale();</a></strong>
<dd>
<p>Get the current scale. 20 means 20 twips (1/20 of a pixel) and is the default value.</p>
</dd>
</li>
<dt><strong><a name="item_setversion">SWF::setVersion($version);</a></strong>
<dd>
<p>Sets SWF version for the header of flashfiles. Choose a value between 4 and 7 for your flashmovies. If you are unsure take 5.</p>
</dd>
</li>
<dt><strong><a name="item_setcubicthreshold">SWF::setCubicThreshold($num)</a></strong>
<dd>
<p>Sets the threshold error for drawing cubic beziers. Lower is more
accurate, hence larger file size.</p>
</dd>
</li>
<dt><strong><a name="item_setswfcompression">SWF::setSWFCompression($level);</a></strong>
<dd>
<p>Set output compression level.
Returns previous value.
$level is integer between 0 and 9.
Note: This function is called automatic too by
$movie-><code>save($filename[,$level])</code> and
$movie-><code>output([$level])</code>
if the optional parameter $level is given.</p>
</dd>
</li>
<dt><strong><a name="item_useconstants">SWF::useConstants($flags);</a></strong>
<dd>
<p>?</p>
</dd>
</li>
</dl>
<p>
</p>
<hr />
<h1><a name="author">AUTHOR</a></h1>
<p>Soheil Seyfaie (soheil at users.sourceforge.net).</p>
<p>
</p>
<hr />
<h1><a name="see_also">SEE ALSO</a></h1>
<p>SWF, SWF::Action, SWF::Bitmap, SWF::Button, SWF::Constants, SWF::DisplayItem, SWF::Fill, SWF::Font, SWF::Gradient, SWF::Morph, SWF::Movie, SWF::Shape, SWF::Sound, SWF::Sprite, SWF::TextField, SWF::Text, SWF::VideoStream</p>
</body>
</html>
|