Click here to get the SWF data from XML then use SWFObject to embed the SWF.
The explanation for this example is here.
More examples can be found at http://pipwerks.com/lab/swfobject