I just ran into good ol’ Flash Error #2136. Here’s the entirety of the error message you get, not at compile time, but at runtime:
Error #2136: The SWF file contains invalid data.
What data exactly is invalid? LOL, as if!
I tried googling the error, and it gives a whole bunch of advice on how to disable a document class, or how you shouldn’t export SWCs with wacky options, or all sorts of other nonsense that doesn’t apply to me. Most seems to have been written years ago. Which kinda tipped me off…
Here’s what worked for me:
- Flash: File > New > Flash AS3.0 File
- Copy the entire “library” from your old FLA
- Paste the entire “library” to the new FLA
- DELETE THE OLD FILE, IT IS MAGICAL POISON
That should resolve all your problems. I spent a good 4 hours on it. All the settings between the two files for the same; the only thing different was the original file used to be a CS3 file and the new file is natively CS4.
I hope this helps save someone else some time.