Sample: XML2SWF.vbs - compiling SWF Flash movie from XML with SWF Scout SDK

Submitted by eLenka on 21 April, 2011 - 15:30

See the sample of compilng SWF flash movie from XML document using SWF Scout.

SWF Scout SDK provides ability to decompile SWF to XML and then compile SWF from XML using SWF2XML and XML2SWF object interfaces.

IMPORTANT NOTE: to use SWF2XML and XML2SWF objects you should have Expert Edition of the SDK.

See also: How to decompile SWF to XML using SWF2XML object in SWF Scout

Here is a piece of code to compile SWF from XML (VBScript):

  Set XML2SWF = CreateObject("SWFScout.XML2SWF")
 
  XML2SWF.InitLibrary "demo","demo"
 
  XML2SWF.LoadXMLFromFile "Shapes.xml", true
  XML2SWF.Compile
XML2SWF.SaveToFile "Shapes_FromXML.swf"