Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
SWF::File(3)	      User Contributed Perl Documentation	  SWF::File(3)

NAME
       SWF::File - Create SWF file.

SYNOPSIS
	 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;

DESCRIPTION
       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.

   METHODS
       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
       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.

SEE ALSO
       SWF::BinStream, SWF::Element

       SWF file	format specification from Macromedia.

perl v5.24.1			  2017-07-02			  SWF::File(3)

NAME | SYNOPSIS | DESCRIPTION | COPYRIGHT | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=SWF::File&sektion=3&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help