SWF::Generator - swf(adobe flash file) generator for perl5
use SWF::Generator; my $swfgen = SWF::Generator->new; my $swf = $swfgen->process('foo.xml'); # setting swfmill and tt options my $swfgen = SWF::Generator->new( swfmill_option => [qw/-e cp932/], tt_option => { INCLUDE_PATH => ['/tmp/'] }, ); my $swf = $swfgen->process('foo.xml'); # setting vars my $xml = ".....<tags>[% buz %]</tags>"; my $swfgen = SWF::Generator->new; my $swf = $swfgen->process(\$xml, { buz => 'bar' });
SWF::Generator is swf generator for perl5. this module use swfmill.
1) make xml > swfmill swf2xml foo.swf > foo.xml
2) edit xml template > vim foo.xml <tags>xxxxx</tags> => <tags>[% name %]</tags>
3) run SWF::Generator
my $sg = SWF::Generator->new; print $sg->process('foo.xml', { name => 'bar' });
# => output swf binary.
kan.fushihara {at} gmail.com
Template, http://swfmill.org/
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install SWF::Generator, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SWF::Generator
CPAN shell
perl -MCPAN -e shell install SWF::Generator
For more information on module installation, please visit the detailed CPAN module installation guide.