Improved AS3 metadata parsing and added support for styles

My first Git test. Added support for styles, and improved metadata parsing (fixed a couple of uncaught exceptions and since properties order isn't always guaranteed to be the same changed how parameters are read).

The changes didn't seem to break anything, but I've only tested this with a few projects.