1#!/usr/bin/perl -w 2# Generated by swftoperl converter included with ming. Have fun. 3 4# Change this to your needs. If you installed perl-ming global you don't need this. 5#use lib("/home/peter/mystuff/lib/site_perl"); 6 7# We import all because our converter is not so clever to select only needed. ;-) 8use SWF qw(:ALL); 9# Just copy from a sample, needed to use Constants like SWFFILL_RADIAL_GRADIENT 10use SWF::Constants qw(:Text :Button :DisplayItem :Fill); 11 12$m = SWF::Movie::newSWFMovieWithVersion(6); 13 14 15# SWF_SETBACKGROUNDCOLOR 16$m->setBackground(0xff, 0xff, 0xff); 17 18# SWF_SHOWFRAME 19$m->nextFrame(); # end of frame 1 20 21# SWF_END 22 23$m->save("test04.swf"); 24