Embrace the timeline….

On creating rich, flashy and immersive advertising experiences online by Owen van Dijk


with 3 comments

Right, i recently needed a way to test something that required changing the version of hundreds of SWF files from one version to another ( dont’ ask ). I found that a good opportunity to work on the SWF format on a lower level, and also to brush up my Perl skills ( had to be done in Perl ), so here’s a little tool that just does that: changing the version of a SWF file without opening up the original FLA and publish it again. It’s a commandline utility, so it can be called from within other scripts or through bash or the likes.

Usage: ./SWFConverter.pl [-hc] -v -i file [-o outputfile]

-h : This (help) message

-c : Returns SWF version

-v : SWF version integer

-i file : SWF input file

-o file : SWF output file

Example: ./SWFConverter.pl -v 7 -i foo.swf -o bar.swf


Example: ./SWFConverter.pl -c -i bar.swf

Download SWFConverter.pl and make it executable ( i’m lazy so i usually do a chmod 755 )

Credits go to Jonas Galvez for helping me out ( plus i reckon he’s going to post a 5 liner Python alternative 😉 )


Written by ohwhen

October 2, 2004 at 3:40 am

Posted in Web/Tech

3 Responses

Subscribe to comments with RSS.

  1. That reminded me of our officially unreleased (because it has a few minor glitches) windows freeware that changes version 1-5 SWF files to version 6. ( http://buraks.com/swifty/sviu10.zip ).

    The way Player processes the SWF files depends very much on the version, normally you wouldn’t want to change it. (We have an option to change a version 5 SWF to version 6 SWF in our UAE software – which still would be helpful for only some files).

    One suggestion for SWFConverter: You check the file extension to see if SWF is valid. It’s possible to have a SWF file with any extension. What’s more it’s possible to have a non-SWF file with .swf extension. So I’d suggest checking the first 3 bytes for the SWF sign (either FWS or CWS).

    #!… I realized I miss Perl…

    Best regards,

    Burak KALAYCI

    October 2, 2004 at 4:45 am

  2. i need


    September 6, 2006 at 3:53 pm

  3. i need


    September 6, 2006 at 3:56 pm

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: