Hi,
Simple test:
private function init():void
{
var f:File = File.applicationStorageDirectory.resolvePath("movie.avi");
f.addEventListener(Event.COMPLETE, com1);
f.deleteFileAsync();
var f2:File = File.applicationStorageDirectory.resolvePath("file.txt");
f2.addEventListener(Event.COMPLETE, com2);
f2.deleteFileAsync();
}
function com1(e:Event):void
{
trace("movie deleted");
}
function com2(e:Event):void
{
trace("file deleted");
}
Where ‘movie.avi’ is about 800mb and file.txt is an empty text file. In this simple test, the “movie deleted” is traced before the “file deleted”. My question is: will this always be the case?
In general: Will multiple asynchronous commands be handles in the same order as they have been started?
I’ve spent enough hours googeling, but I couldn’t find any documentation specific to this problem.
Thanks!