var sr = ""; sr +=fileURI; var str = sr.substring(0, sr.lastIndexOf("/")); doc.convertToDoc( str+"/test.fla" ,'Flash',true); //doc.convertToDoc('fileURI','htmlcanvas',true); //doc.convertToDoc('fileURI','WebGlDoc',true