/usr/share/doc/libswf-perl/examples/text.cgi is in libswf-perl 1:0.4.5-1.2ubuntu7.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
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 | #!/usr/bin/perl -w
use strict;
#use lib("/home/peter/ming3/lib/perl5/site_perl");
$|=1;
use SWF qw(Movie Font Text);
SWF::setScale(1.0);
# Add path to your *.fdb file
my $filename = '../common/_sans.fdb';
my $f= new SWF::Font($filename);
my $t= new SWF::Text();
$t->setFont($f);
$t->moveTo(200, 2400);
$t->setColor(0xff, 0x0, 0);
$t->setHeight(1200);
$t->addString("ming!");
my $m = new SWF::Movie();
$m->setDimension(5400, 3600);
$m->add($t);
# decide if its called from commandline or as cgiscript
if (exists $ENV{"REQUEST_URI"}){
print "Content-type: application/x-shockwave-flash\n\n";
$m->output();
}
else {
$m->save("$0.swf");
print "Generated file written to $0.swf\n";
}
|