*
* @throws SWFParserException Thrown if the structure could not be parsed.
*/
public static MorphLineStyleArray parse(final SWFBinaryParser parser, final String fieldName) throws SWFParserException {
final UINT8 lineStyleCount = parseUINT8(parser, 0x00006, fieldName + "::LineStyleCount");
final UINT16 lineStyleCountExtended = parseUINT16If(parser, 0x00006, lineStyleCount.value() == 0xFF, fieldName + "::LineStyleCountExtended");
final int normalizedCount = lineStyleCount.value() == 0xFF ? lineStyleCountExtended.value() : lineStyleCount.value();
final List<MorphLineStyle> lineStyles = new ArrayList<MorphLineStyle>();
for (int i=0;i<normalizedCount;i++) {
lineStyles.add(MorphLineStyleParser.parse(parser, String.format(fieldName + "::LineStyles[%d]", i)));