Thursday, July 12, 2012

SWF rebuilding with as3swf code library

Hey!
It’s been too long since we’ve had a good
bandit raid
topical content here. I’m going to fix it!)
Today we’ll speak about SWF changing using as3swf code library, as you could already guess from this post topic.
Let me introduce this library first.
It was designed to parse, modify, and create SWF files on the fly. You could get all the tags and SWF properties (frameRate, version, etc.) after ByteArray with target SWF parsing. The good thing is that with as3swf you’re free to modify any SWF tags and properties and it is able to save all changes you did! It could even allow you to create a new SWF file from scratch.
as3swf is available for your experiments at github: https://github.com/claus/as3swf
Library is pretty alive and have a good communicative author (Claus Wahlers), so feel free to make Pull requests ;)
BTW, he applied my LZMA compression (more on LZMA – here) support pull request yesterday.
You should wait for the Flash Player 11.4 release to try as3swf with LZMA-compressed SWFs though.
One thing as3swf could not provide is a DoABC Tag ABC parsing.
Author started so library project some time ago, but abandoned it, thus it is no longer supported or actual.
I should agree with Claus though since a great ABC parsing and creating on the fly library as3commons bytecode already exists and have updates periodically: http://as3-commons.googlecode.com/svn/trunk/as3-commons-bytecode/changelog.txt
I’ve used it some time ago and was really happy with it. But this is another case…
I’ll shed a bit of light on my as3swf using purposes: I had a task to replace one SWF tag with completely new data, it was the DefineBinaryData tag to be clearer.
This is how looks SWF parsing code: [...]
Read more: SWF rebuilding with as3swf code library

No comments:

Post a Comment