16 Jun 2002 18:27:33 UTC
- Distribution: SWF-Search
- Module version: 0.01
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (1)
- Testers (317 / 114 / 2)
- KwaliteeBus factor: 0
- 41.35% Coverage
- License: unknown
- Activity24 month
- Download (5.55KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
SWF::Search - Extract strings and information from Macromedia SWF files
use SWF::Search; my $search = SWF::Search->new(File=>"mymovie.swf"); my @found = $search("Spock"); my @text = $search->strings;
This module allows the searching of Macromedia SWF files for text strings. The supported methods of searching for text are currently limited to strings within editable text fields, and frame labels. Future versions will support strings created by font-shape based text, and text used within actionscript expressions.
This initial release also does not support the compressed SWF files created by Flash MX.
- my $search = SWF::Search->new(File=>"mymovie.swf");
Instantiates and returns a new search object. Valid options are:
- $s->search("string" [,Type=>type, %options]);
Examines the SWF file for the given search term, and returns a list of text strings containing the term. If no search term is given, the method will return all found text strings in the file. A Type option may also be passed to the method, requesting that the search only be performed on a certain kind of text. The currently supported text types are All, EditText, and Label. If no Type option is given, the method defaults to searching All text. Additional options for the search may also be given. Currently, the only available option flag is CaseSensitive; searches are case-insensitive by default.
Returns a list of text strings found in the SWF movie file.
Returns a list of frame label text found in the SWF movie file.
Sets and parses the filename on which to search if an argument is given, or returns the filename if called without an argument..
Copyright 2002, Marc Majcher. All rights reserved.
This library is free software; you may redistribute it and/or modify it under the same terms as Perl itself.
Address bug reports and comments to: email@example.com
This module is based on the OpenSWF specification and SDK released by Macromedia at http://www.macromedia.com/software/flash/open/licensing/fileformat/