Bug 1035170 - Rewrite SWF parsing to a scan-first, parse tags on demand approach

I removed almost all usages of `inBrowser` now. For the remaining two, I'm unsure about how to fix them.