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

Frames missing in complex JSON #1

Closed
lbergman opened this issue Jan 16, 2012 · 1 comment
Closed

Frames missing in complex JSON #1

lbergman opened this issue Jan 16, 2012 · 1 comment

Comments

@lbergman
Copy link

Greetings,

When selecting either "Variable Frame" or "Reuse Frames", the exported JSON seems to missing frames.
I made a simple example where frame 1 has the label "first" and frame 6 has the label "second". Each frame contains a text field with the frame number in it.
Looking at the png, all frames are rendered, but the json for "animations" looks like this when using complex mode (either "Variable Frame or "reuse Frames" selected):

"animations": {"first": {"frames": [0, 1, 2, 3]}, "second": {"frames": [5, 6, 7, 8, 9]}}

Disabling complex mode the same swf gives the following value for "animations":

"animations": {"first": [0, 4], "second": [5, 10]}

What happened to frames 4 and 10 in complex mode?

I tried with different swf's, and the issue seems to always happens in complex mode, but if you want to have a look at an example fla, let me know where you like me to send it to.

Many thanks,
Leo

@lbergman
Copy link
Author

Had a look at the source, and came up with a fix.
I changed line 760 in com.gskinner.zoe.utils.CaptureSWF from:
for (var i:uint=start;i<end;i++) {
to:
for (var i:uint=start;i<=end;i++) {

@wdamien wdamien closed this as completed May 20, 2012
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

2 participants