⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 text.cgi

📁 Ming is a library for generating Macromedia Flash files (.swf), written in C, and includes useful ut
💻 CGI
字号:
#!/usr/bin/perl -wuse 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 filemy $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 cgiscriptif (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";}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -