ginkosen/as3-commons

File is broken after re-saving it

Opened this issue · 3 comments

This file:
http://www.sendspace.com/file/ad8xps

became broken (shows white blank screen in FP) after this:

var rawSWFFile:ByteArray = new ByteArray();
FileIO.readFile(targetFile, rawSWFFile);

var io:SWFFileIO = new SWFFileIO();
var swfFile:SWFFile = io.read(rawSWFFile);

var savedFile:ByteArray = new ByteArray();
io.write(savedFile,swfFile);
FileIO.saveFile(targetFile, savedFile);

Original issue reported on code.google.com by dmitry....@gmail.com on 14 Oct 2012 at 1:36

Original comment by ihatelivelyids on 14 Oct 2012 at 2:59

Hey there, could you also post the sources that produced this file?
Thanks!

Original comment by ihatelivelyids on 14 Oct 2012 at 3:27

In fact this happened with absolutely any files I tried to read and write 
without changes.

Original comment by dmitry....@gmail.com on 14 Oct 2012 at 4:37