I am using jsfl to save .fla Doc in flash.But I want to save as .xfl(uncompressed document format), and I can't find useful API in jsfl.What should I do?

Thanks!

有帮助吗?

解决方案

You can use this: fl.getDocumentDOM().saveAsCopy('PathURI / filename.xfl');

Eg. If you'd like to save a fla file's copy as xfl in the same location and with same name, use this:

var newFileName = fl.getDocumentDOM().pathURI.replace('.fla','.xfl');
fl.getDocumentDOM().saveAsCopy(newFileName);
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top