I’m trying to understand how movieclips from swf are rendered in openfl. I have a simple movieclip in animate. The animation consist of 1 shape being interpolated. When I display it on my openfl test application (I’ve tried targeting html5 and windows so far), the movieclip is rendered flawlessly. If I upscale it, the quality doesn’t decrease which means the movieclip is redrawn when the scale changes.
I’ve read that swf are just turned into a lighter version at compilation time. I can access the graphics of the shape via getChildAt. So I’m guessing that every frame of the movieclip are not rasterized. So how is the movieclip displayed? Is the graphic redrawn each frame or is the graphic being drawn once then interpoled every frame? Is this data cached somehow or will the movieclip recalculate it if the animation is looping?
In a way I am asking what is the most optimized way to display an animation. Should I use a movieclip from a swf or should I use one of the spritesheet animation lib out there (like this one)?