Reputation: 184
I'm trying to develop an application that will parse the data from a .swf (I want to be able to read some fields from the flash file) How can I achieve this? or is it impossible ?
Upvotes: 2
Views: 2033
Reputation: 3891
You can use SWF::Parser
Ex:
use SWF::Parser;
$parser = SWF::Parser->new( 'header-callback' => \&header, 'tag-callback' => \&tag);
# parse binary data
$parser->parse( $data );
# or parse SWF file
$parser->parse_file( 'flash.swf' );
Check here: http://search.cpan.org/~ysas/SWF-File-0.42/lib/SWF/Parser.pm
Upvotes: 1