#!/usr/bin/perl
use strict;
use SWF::Builder;
my $m = SWF::Builder->new(FrameRate => 15, FrameSize => [0, 0, 400, 200], BackgroundColor => 'ffffff');
$m->compress(1);
my $fp = $ENV{SYSTEMROOT}.'/fonts';
my $fontt = $m->new_font("$fp/times.ttf");
$fontt->add_glyph("\x20", "\x7f");
my $fontti = $m->new_font("$fp/timesi.ttf");
$fontti->add_glyph("\x20", "\x7f");
my $fonta = $m->new_font("$fp/arial.ttf");
$fonta->add_glyph("\x20", "\x7f");
my $ht = $m->new_html_text;
$ht->text(<
This is a dynamic HTML text object sample.
HTMLEND $ht->use_font($fontt, $fontti, $fonta); $ht->place->moveto(20,50); $m->save('htmltest.swf');