Skip navigation
Currently Being Moderated


Jan 7, 2010 1:17 PM

I am attempting to parse a SWF file and I believe I may have found an error on page 135-6 of the "SWF File Format Specification Version 10" ( This is where the STYLECHANGERECORD is defined. The spec references two fields, FillBits and LineBits that are used to define the lengths of unsigned bit strings read from the SWF file; however, these fields themselves are not defined in the STYLECHANGERECORD.


I have a similar issue with the nGlyphs field used as an array length by DEFINEFONT; The nGlyphs field is never defined itself in that record.


I tried using Adobe's general contact form as well as contacting as they say to do on the spec download page; however, I haven't heard back. I hope one of you who are reading this might have some insight to either the completeness of the spec, or what I am misunderstanding.




  • Currently Being Moderated
    Jun 18, 2012 12:55 PM   in reply to voidlogic

    I know this post is extremely old, but it'd be good to have the answer here for posterity. I ran into the same confusion.


    Apart from DefineShape2 and DefineShape3 shapes, FillBits and LineBits are fixed throughout a single shape (presumably because the length of the linestyle and fillstyle arrays are fixed throughout a single shape). They're defined at the beginning of the SHAPE structure (on page 133 of the v10 format spec).

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points