Closed yurishkuro closed 11 years ago
You are totally right, here's the link to the bug: https://bugbase.adobe.com/index.cfm?event=bug&id=3340012 They've fixed it, and there's not need for an extra frame anymore!
thanks for letting us know. Fixed, Committed and pushed.
I have a movie clip that contains 3 frames. When I load it as Flash MovieClip, its totalFrames property is 3, as expected. But when DMT rasterizes it into a Starling MovieClip, in only creates 2 frames. I may have been happening on other clips, I just didn't notice as they had longer loops.
This seems to be caused by the following code in the rasterizer:
The last condition causes the last frame to be excluded.
What is this AIR bug that the code refers to? A link to an article/discussion would be useful.
But more importantly, what is the recommended work around? Should I create all assets with an extra frame at the end? Or should I disable that behavior by setting emptyLastFrameWorkaround=false? The latter doesn't actually seem possible with the current API as the rasterizer is instantiated as a private variable.
Thank you for a great library!