You can use Scaleform for this purpose. Scaleform includes a Direct Access API (DAPI), which allows C ++ to manage Flash resources (this includes creating instances of characters at run time and managing their states + lifetime).
The GFx :: Value class is the foundation of DAPI and should provide most, if not all, of the functionality you need. You may still need some AS3 code to glue some things together, but this should be negligible.
The performance of static vector content depends on the complexity of the form (more paths, more styles => more triangles + lots). I would try to limit the number of animations of a temporary animation (form), because changing the form will lead to repeated tessellation. Scaling vector content will also result in re-tessellation, so keep that in mind.
source share