Make sure the bit order is correct.
Best thing to do is get a SWF file containing data you know and look at how it's stored with a hex editor.
Best thing to do is get a SWF file containing data you know and look at how it's stored with a hex editor.