File: swf

package info (click to toggle)
ploticus-doc 2.33-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 9,392 kB
  • ctags: 169
  • sloc: pascal: 469; makefile: 63; sh: 11
file content (155 lines) | stat: -rw-r--r-- 3,677 bytes parent folder | download
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
.ig >>
<STYLE TYPE="text/css">
<!--
        A:link{text-decoration:none}
        A:visited{text-decoration:none}
        A:active{text-decoration:none}
        OL,UL,P,BODY,TD,TR,TH,FORM { font-family: arial,helvetica,sans-serif;; font-size:small; color: #333333; }

        H1 { font-size: x-large; font-family: arial,helvetica,sans-serif; }
        H2 { font-size: large; font-family: arial,helvetica,sans-serif; }
        H3 { font-size: medium; font-family: arial,helvetica,sans-serif; }
        H4 { font-size: small; font-family: arial,helvetica,sans-serif; }
-->
</STYLE>
<title>ploticus: flash (swf) support</title>
<body bgcolor=D0D0EE vlink=0000FF>
<br>
<br>
<center>
<table cellpadding=2 bgcolor=FFFFFF width=550><tr>
<td>
  <table cellpadding=2 width=550><tr>
  <td><br><h2>Flash (SWF) support</h2></td>
  <td align=right>
  <small>
  <a href="../doc/welcome.html"><img src="../doc/ploticus.gif" border=0></a><br>
  Version 2.33 Jun'06
  <td></tr></table>
</td></tr>
<td>
<br>
<br>
.>>

.TH Flash_(SWF)_support PL "02-JUN-2006   PL ploticus.sourceforge.net"

.LP
Ploticus version 2.11+ supports the
.ig >>
<a href="http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">
.>>
\0shockwave flash (SWF)
.ig >>
</a>
.>>
output format.
Use the \fC-swf\fR command line option.
SWF support is only available when included at compile time and requires the ming library (see 
.ig >>
<a href="buildinfo.html">
.>>
\0build instructions
.ig >>
</a>
.>>
and the Makefile).  Ming version 0.2a was used during the original development effort.

.ig >>
<br><br><br>
.>>

.SH Fonts
Environment variable SWF_FONTS_DIR must be defined to hold the full path name of a directory
containing .fdb font files.  The ploticus SWF driver expects font names to be a single token; 
font names containing embedded whitespace should be renamed (or soft linked) to a name containing no
embedded whitespace.
.ig >>
<a href="fonts.html#swf">
.>>
\0More info on fonts
.ig >>
</a>
.>>

.ig >>
<br><br><br>
.>>

.SH Output files
Output files will be named \fC.swf\fR by default.
These files can be viewed directly using a browser that has a flash plugin.

.ig >>
<br><br><br>
.>>
.SH Example
The example below was created by issuing this command:
\fCpl -swf stock.htm\fR
.ig >>
<embed src="../gallery/stock.swf" 
pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" 
type="application/x-shockwave-flash" height=300 width=500>
</embed> 
.>>
.br
.ig >>
<a href="../gallery/stock.swf">
.>>
\0stock.swf
.ig >>
</a>
.>>
.br
.ig >>
<a href="../gallery/stock.htm">
.>>
\0stock ploticus script
.ig >>
</a>
.>>
.LP
Here's the embed HTML:
.nf
.ig >>
<small>
.>>
<embed src="../gallery/stock.swf" 
pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" 
type="application/x-shockwave-flash" height=300 width=500>
</embed> 
.ig >>
</small>
.>>
.fi

.ig >>
<br><br><br>
.>>

.SH Bugs / not supported:
.LP
line dash styles
.LP
clickable regions / click maps / mouseover tooltip text bubbles
.LP
some color change issues have been occasionally noted
.LP
fontnames having embedded spaces don't work - rename your font file or make a soft link
.LP
The SWF driver does not release memory correctly when there are multiple "jobs" per OS process,
as might be done when using the libploticus API.
Still, it seems to produce usable .swf results in 
my tests of about 20 jobs in one OS process. (scg - May 12, 2004)


.ig >>
<br><br><br>
.>>
.SH Acknowledgement
Many thanks to Bill Traill 
(\fC bill@traill.demon.co.uk \fR)
for initiating ploticus 
SWF support and writing the ploticus SWF driver.