swf
swf copied to clipboard
Add support for MorphShapes in animate library exporter
I needed MorphShape support for one of my projects, so I decided to implement it. It goes as follows:
- Export the shape at the
0and65535ratios to make proper start and end edges and serialize them - Parse the commands into shape commands that can be interpolated in the library initializer
- When the display object is updated with a new ratio, do the interpolation at runtime and cache the result for that ratio