Table of Contents

SWF Processor

SWF Processor was created to enhance movies produced with BB FlashBack. It relies on Transform SWT API For Java.

To invoke the processor download swf-processor.jar and transform-3.0.2.jar and the use the following command line

java -jar swf-processor.jar <input file> [<output file>]

Parameters: <input file> [<output file>]. If second parameter is absent then the source file gets overwritten.

For each DefineButton2 in the movie the processor iterates over its event handlers and event handler actions and:

  • Replaces target in GetUrl() if GetUrl is in format target(<new target>):<URL> with the new target. If the new target is in format _level<number> then the command loads a movie at URL to the player at specified layer. Examples:
    • target():http://www.hammurapi.com/somepage.html - opens http://www.hammurapi.com/somepage.html in the same browser frame.
    • target(myframe):http://www.hammurapi.com/somepage.html - opens http://www.hammurapi.com/somepage.html in myframe browser frame.
    • target(_level1):somemovie.swf - loads somemovie.swf to layer 1 into the player.
  • Converts button's GetUrl URL's prefixed with $DoAction: into DoAction actions. In other words, button's GetUrl are converted into frame's actions. For example, the button was configured to load a movie into the player $DoAction:target(_level1):next.swf. After processing next.swf will be loaded when the player reaches the frame where the button is defined.
If input file is a directory then the processor processes .swf files and recurses into subdirectories.

License

SWF Processor is released under LGPL

Files

FilenameFilesizeLast modified
SwfProcessor.java4.9 K2011/10/08 17:17
swf-processor.jar3.2 K2011/10/08 16:18
transform-3.0.2.jar529.5 K2011/10/08 16:18
Last modified: 2011/10/08 17:00 by Pavel Vlasov
   
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Hammurapi Group