Hi to everyone! this is my first post here 🙂
I am using the AssetManager to load some files when the app start. I was using CachingDataLoader and everything was working fine while i was running the 32 SDK.
Since i moved to 33.0.2, assets.dataLoader = new CachingDataLoader(); it is woking in IOS but not in Android. It stops working here:
function onLoadComplete(data:ByteArray):void{
trace("saving to local cache file: " + cacheFile.nativePath);
remoteData = data;
stream = new FileStream();
stream.addEventListener(Event.CLOSE, onFileStreamClosed);
stream.addEventListener(IOErrorEvent.IO_ERROR, onFileStreamError);
stream.openAsync(cacheFile, FileMode.WRITE);
stream.writeBytes(data);
stream.close();
}
(here is the link to the entire Class: https://gist.github.com/PrimaryFeather/a08cda0c75ae8ff7a660d76cc391628f )
i can see the trace in the output panel, but then the code stop working, and neither the Event.CLOSE nor the IOErrorEvent.IO_ERROR are dispatching.
i have noticed that this is happening before one or two files were moved to cache
does anyone had this kind of poblem? is there any kind of known error or issue in relation widh the 33 SDK and FileStream?
any help or advice is more than welcome.