var swfgen = getAdditionalFile("ActiveX\\SWFGen.dll");
ActiveXObject.register(swfgen);
After the ActiveX object has been registered, you can invoke its methods and properties in FFish Script.
var mainWnd = getMainWnd();
mainWnd.onClose = function ()
{
ActiveXObject.unregitser(swfgen);
}
All additional files include the ActiveX object will be removed after the application is closed.