Adapted to OpenFL

map = new TmxMap(nme.Assets.getBytes(mapData)); // Caused error: "Document is missing element map"