Missing SWFMorphFillStyle's? #18

Closed
haysclark opened this Issue Feb 18, 2012 · 6 comments

Projects

None yet

3 participants

@haysclark

This error is happening in 'SwfTimelineContainer.as' when I try to load a swf. I'm guessing these are Morph targets blowing up the parser. I have shared an example FLA and SWF here which cause the problems. I can't actually find the frame that is causing the problem.

FLA: http://dl.dropbox.com/u/224564/problemAsset.fla
SWF: http://dl.dropbox.com/u/224564/problemAsset.swf

Error: Unknown fill style type: 0x13
    at com.codeazur.as3swf.data::SWFMorphFillStyle/parse()[C:\Users\hclark\popcap\sb-trinket-tool\src\com\codeazur\as3swf\data\SWFMorphFillStyle.as:48]
    at com.codeazur.as3swf.data::SWFMorphFillStyle()[C:\Users\hclark\popcap\sb-trinket-tool\src\com\codeazur\as3swf\data\SWFMorphFillStyle.as:22]
    at com.codeazur.as3swf::SWFData/readMORPHFILLSTYLE()[C:\Users\hclark\popcap\sb-trinket-tool\src\com\codeazur\as3swf\SWFData.as:593]
    at com.codeazur.as3swf.tags::TagDefineMorphShape2/parse()[C:\Users\hclark\popcap\sb-trinket-tool\src\com\codeazur\as3swf\tags\TagDefineMorphShape2.as:36]
    at com.codeazur.as3swf::SWFTimelineContainer/parseTag()[C:\Users\hclark\popcap\sb-trinket-tool\src\com\codeazur\as3swf\SWFTimelineContainer.as:185]
    at com.codeazur.as3swf::SWFTimelineContainer/parseTagsAsyncInternal()[C:\Users\hclark\popcap\sb-trinket-tool\src\com\codeazur\as3swf\SWFTimelineContainer.as:137]
    at com.codeazur.as3swf::SWFTimelineContainer/parseTagsAsyncHandler()[C:\Users\hclark\popcap\sb-trinket-tool\src\com\codeazur\as3swf\SWFTimelineContainer.as:130]

I changed the code to not throw an error and I get the following style requests:
Encountered unknown fill style type: 0x13
Encountered unknown fill style type: 0xb5
Encountered unknown fill style type: 0xff
Encountered unknown fill style type: 0x31
Encountered unknown fill style type: 0xdb
Encountered unknown fill style type: 0x34
Encountered unknown fill style type: 0x8b
Encountered unknown fill style type: 0xd6
Encountered unknown fill style type: 0x34
Encountered unknown fill style type: 0x4e
Encountered unknown fill style type: 0x4
Encountered unknown fill style type: 0xd4
Encountered unknown fill style type: 0xce
Encountered unknown fill style type: 0x8c
Encountered unknown fill style type: 0x3
Encountered unknown fill style type: 0xc6
Encountered unknown fill style type: 0xa1
Encountered unknown fill style type: 0x63
Encountered unknown fill style type: 0x3e
Encountered unknown fill style type: 0x3e
Encountered unknown fill style type: 0x9d
Encountered unknown fill style type: 0x89
Encountered unknown fill style type: 0x1e
Encountered unknown fill style type: 0x86
Encountered unknown fill style type: 0xe8
Encountered unknown fill style type: 0xf1
Encountered unknown fill style type: 0x2
Encountered unknown fill style type: 0x58
Encountered unknown fill style type: 0x79
Encountered unknown fill style type: 0xff
Encountered unknown fill style type: 0xbd
Encountered unknown fill style type: 0xb2
Encountered unknown fill style type: 0x4f
Encountered unknown fill style type: 0x86
Encountered unknown fill style type: 0x86
Encountered unknown fill style type: 0x2b
Encountered unknown fill style type: 0x26
Encountered unknown fill style type: 0x5b
Encountered unknown fill style type: 0xff
Encountered unknown fill style type: 0x1b
Encountered unknown fill style type: 0x77
Encountered unknown fill style type: 0x3a
Encountered unknown fill style type: 0x31
Encountered unknown fill style type: 0xf7
Encountered unknown fill style type: 0xfd
Encountered unknown fill style type: 0x64
Encountered unknown fill style type: 0x70
Encountered unknown fill style type: 0x63
Encountered unknown fill style type: 0x7c
Encountered unknown fill style type: 0x7f
WARNING: parse error: Unknown fill style type: 0x35, Tag: DefineMorphShape2, Index: 15

@claus
Owner
claus commented Feb 18, 2012

Nice find. It's looks like a morphed focal gradient (not documented in SWF10). I'm on it.

@claus
Owner
claus commented Feb 18, 2012

Preliminary fix:

http://dl.dropbox.com/u/59138954/as3swf.swc

Not committed, because i have to properly test yet.

@claus claus closed this Jul 11, 2012
@metaine
metaine commented Aug 23, 2013

claus, I experience the same issue with pulled swc and source code. Can you reshare preliminary fix? its not accessible

@metaine
metaine commented Aug 23, 2013

Error: Unknown fill style type: 0x5

Thanks for your work, anyways!

@claus
Owner
claus commented Aug 26, 2013

@metaine - that fix has landed since i posted that preliminary fix, see 7f36d9e
Can you send me the SWF you have problems with? There is no fill style type 5, at least not to my knowledge, so either it's undocumented or something else goes wrong.

@claus
Owner
claus commented Aug 28, 2013

@metaine - fixed with 32cfe48. Thanks for reporting this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment