1SWF(3) User Contributed Perl Documentation SWF(3)
2
3
4
6 SWF - an autoloadable interface module for Ming - a library for
7 generating ShockWave Flash format movies.
8
10 # Don't import other modules
11 use SWF;
12
13 # import all SWF modules
14 use SWF qw(:ALL);
15
16 # import SWF::Shape and SWF::Movie only.
17 use SWF qw(Shape Movie);
18
20 By default, SWF doesn't import other SWF classes. You may, however,
21 instruct SWF to import all modules by using the following syntax:
22
23 use SWF qw(:ALL);
24
26 SWF::setScale($scale);
27 Sets scale to $scale.
28
29 SWF::getScale();
30 Get the current scale. 20 means 20 twips (1/20 of a pixel) and is
31 the default value.
32
33 SWF::setVersion($version);
34 Sets SWF version for the header of flashfiles. Choose a value
35 between 4 and 7 for your flashmovies. If you are unsure take 5.
36
37 SWF::setCubicThreshold($num)
38 Sets the threshold error for drawing cubic beziers. Lower is more
39 accurate, hence larger file size.
40
41 SWF::setSWFCompression($level);
42 Set output compression level. Returns previous value. $level is
43 integer between 0 and 9. Note: This function is called automatic
44 too by $movie->save($filename[,$level]) and
45 $movie->output([$level]) if the optional parameter $level is
46 given.
47
48 SWF::useConstants($flags);
49 ?
50
52 Soheil Seyfaie (soheil at users.sourceforge.net).
53
55 SWF.pm related modules: SWF::Action, SWF::Bitmap, SWF::Button,
56 SWF::Constants, SWF::DisplayItem, SWF::Fill, SWF::Font, SWF::Gradient,
57 SWF::Morph, SWF::Movie, SWF::MovieClip, SWF::PrebuiltClip, SWF::Shape,
58 SWF::Sound, SWF::TextField, SWF::Text, SWF::VideoStream, SWF::Sprite
59
60 other projects: SWF::Builder - a pure perl alternative to Ming
61
62
63
64perl v5.32.0 2020-07-28 SWF(3)