Fixed some bugs in the xml flash importer.