Scripting | Export SWF Custom Tool

I’m developing, for an Animation Studio, an Export/Import ToonBoom/AE Tool.

I wonder…

Is there a way to export SWF from a script. If it is, where is the documentation?

cheers.

ag