Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Gradient supports at most 8 control points" on Flash/Animate-generated SWFs #9

Open
andrew-klaassen opened this issue Jan 25, 2018 · 1 comment

Comments

@andrew-klaassen
Copy link
Contributor

We've been getting some of these errors:

Gradient supports at most 8 control points ("+num_records+" has bee given) when shape verison is lower than 4!

...on various SWFs generated by Animate/Flash. I'll hopefully get a chance to narrow it down to a simple test case sometime in the next few days, and hopefully that will lead me to a solution. I'm sure that the problem is in the format lib, but I don't see a place to enter an issue there so I'll put it here. Apologies if this is in the wrong place.

@andrew-klaassen
Copy link
Contributor Author

The format spec clearly says, "Note that for the DefineShape, DefineShape2 or DefineShape3 tags, the SpreadMode and InterpolationMode fields must be 0, and the NumGradients field cannot exceed 8," but Flash and Animate are just as clearly creating DefineShape3 structures with more than 8 gradient records. I've attached a minimal example. FFDec parses it without any complaints.
space_test_v1.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant