To answer you first question, in theory you could read in the swf and modify particular parts of it, however you would need to know exactly what you were looking for, swfs are compressed so there won't be a simple link to regex. To be honest I would just modify the swf to receive its parameters, its the more sensible way to do it.
As for your second question CPAN has several modules which create swf's on the fly check out
<A HREF=http://search.cpan.org/doc/YSAS/SWF-File-0.08/File.pm">SWF-File-0.08/File.pm but you have to think about do you really want to generate a swf and why? Would it not be easier just to modify the swf to receive the inputs ?
HTH
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|