GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
SWF::File(3) User Contributed Perl Documentation SWF::File(3)

SWF::File - Create SWF file.

  use SWF::File;

  $swf = SWF::File->new('movie.swf', Version => 4);
  # set header data
  $swf->FrameSize( 0, 0, 1000, 1000);
  $swf->FrameRate(12);
  # set tags
  $tag = SWF::Element::Tag->new( .... )
  $tag->pack($swf);
  ....
  # save SWF and close
  $swf->close;

SWF::File module can be used to make SWF (Macromedia Flash(R)) movie. SWF::File is a subclass of SWF::BinStream::Write, so you can pack SWF::Element::Tags in it.

SWF::File->new( [$filename, [Version => $version, FrameRate => $framerate, FrameSize => [$x1, $y1, $x2, $y2]]] )
Creates a new SWF file. You can set SWF header parameters.

NOTE: Unlike the previous version, SWF version can be set only here. Default is 5.

$swf->FrameRate( [$framerate] )
Sets and gets the frame rate of the movie (frames per second). Default is 12.
$swf->FrameSize( [$x1, $y1, $x2, $y2] )
Sets the bounding box size of the movie frame in TWIPs (1 TWIP = 1/20 pixel), and gets the size as SWF::Element::RECT object. Default is (0, 0, 12800, 9600).
$swf->FrameCount( [$count] )
Sets and gets the frame count of the movie. Usually you don't need to set because SWF::File object automatically count the ShowFrame tags. If you want to set the different value, you should set it just before $swf->close.
$swf->compress
Makes output SWF compressed. You should set the version to 6 or higher before call it.
$swf->close( [$filename] ) / $swf->save( [$filename] )
Saves SWF to the file and closes it.

Copyright 2001 Yasuhiro Sasama (ySas), <ysas@nmt.ne.jp>

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

SWF::BinStream, SWF::Element

SWF file format specification from Macromedia.

2022-04-07 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.