The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

SWF::Generator - swf(adobe flash file) generator for perl5

SYNOPSIS

  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' });

DESCRIPTION

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.

AUTHOR

kan.fushihara {at} gmail.com

SEE ALSO

Template, http://swfmill.org/

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.