I've tried Scripting.FileSystemObject in the function below:

function writePhotoDB(path) {
        var fo, fso; 
        alert("path="+path);    
        fso = new ActiveXObject("Scripting.FileSystemObject"); 
        alert("file="+path+"myGallery.xml");
        fo = fso.CreateTextFile(path+"myGallery.xml", true);
        fo.WriteLine(getFileList(path));
        fo.Close();
        return "successful";
}

It works in a standalone html page, but when called from the Flex
external interface, it dies when trying to create the new
ActiveXObject. I'm wondering if AS3-JS-ActiveX is not allowed, even in
a localTrusted sandbox.

Reply via email to