Seiji Harada > IO-SWF-Editor > IO::SWF::Editor

Download:
IO-SWF-Editor-0.04_01.tar.gz

Dependencies

Annotate this POD

Module Version: 0.04_01   Source  

^

IO::SWF::Editor - Parse and edit SWF binary by Perl.

SYNOPSIS ^

    use IO::SWF::Editor;

    my $swf = IO::SWF::Editor->new();
    $swf->parse($swf_binary);

    print $swf->build();

VERSION ^

This document references version 0.04_01 of IO::SWF::Editor, released to CPAN on Aug 10, 2011.

DESCRIPTION ^

IO::SWF::Editor provides to parse and edit SWF binary.

USAGE If you want to replace buried image in SWF to another image, you can do it easily.

        my $swf = IO::SWF::Editor->new();
        $swf->parse($swf_binary);
        $swf->setCharacterId();
        $swf->replaceBitmapData($character_id, $blob);

        print $swf->build();

    For more details, look at each methods' document.

METHODS ^

$swf->setCharacterId()
    Set characterId for specify tag.
$swf->replaceTagContent()
    Replace content by tagCode.
$swf->getTagContent()
    Get content by tagCode.
$swf->replaceTagContentByCharacterId()
    Replace content by tagCode and characterId.
    You must call setCharacterId() before call this method.
$swf->replaceTagByCharacterId()
    Replace Tag by tagCode and characterId.
    You must call setCharacterId() before call this method.
$swf->getTagContentByCharacterId()
    Get content by tagCode and characterId.
    You must call setCharacterId() before call this method.
$swf->deformeShape()
    Decrease Shape's edges.
$swf->replaceActionStrings()
$swf->replaceBitmapData()
$swf->countShapeEdges()
syntax highlighting: