Tengo un problema al trabajar con ficheros, explico:
encontre en esta pagina como mover un fichero link
Código :
var original = File.documentsDirectory; original = original.resolvePath("AIR Test/test.txt"); var destination:File = File.documentsDirectory; destination = destination.resolvePath("AIR Test 2/copy.txt"); original.addEventListener(Event.COMPLETE, fileMoveCompleteHandler); original.addEventListener(IOErrorEvent.IO_ERROR, fileMoveIOErrorEventHandler); original.moveToAsync(destination); function fileMoveCompleteHandler(event:Event):void { trace(event.target); // [object File] } function fileMoveIOErrorEventHandler(event:IOErrorEvent):void { trace("I/O Error."); }
funciona bien con archivos en el equipo local, mi problema se presenta cuando intento mover archivos en un servidor web desde air, falla, no me encuentra el archivo. ¿hay alguna forma de mover archivos en el servidor?.
Un saludo y gracias