Please help me regarding file download

hello please help me out…I have to develop an application that will download afolder from the server to the client and I am not able to even download a file please help me out and tell how to first download afile and then the folder itself…I am using red5 as server thank you in advance

is there nobody who is wishing to help me:(

[quote=amarghosh;2342023]am sorry if i am stating the obvious thing.
but u can start with the [U]FileReference[/U] class.
i don’t have experience using it, but i don’t think u can download folder itself. may be u can use nochumb AS3 zip library to zip it and download the zip file;[/quote]

yes I m using that and m able to download file from the net but not from the local server running beside me.can you tell what URL is to be given for that fr eg server IP is 172.18.100.126 and file name is qwerty.txt

I dont know anything about sand boxes please explain…

I would like to ask where should I keep the file on the server that is to be downloaded and what path should be given in the URL

this is the error that I m getting…
ioErrorHandler: [IOErrorEvent type=“ioError” bubbles=false cancelable=false eventPhase=2 text=“Error #2038: File I/O Error. URL: http://172.18.100.126/Bubbly.flv” errorID=2038]

here is the code that I m using

package download
{
import flash.display.Sprite;
import flash.events.*;
import flash.net.FileReference;
import flash.net.URLRequest;

public class downloadFileExample extends Sprite
{
private var downloadURL:URLRequest;
private var fileName:String = “Bubbly.flv”;
private var file:FileReference;

    public function downloadFileExample() 
    {
        downloadURL = new URLRequest();
        downloadURL.url = "http://172.18.100.126/Bubbly.flv";
        file = new FileReference();
        file.addEventListener(ProgressEvent.PROGRESS, progressHandler);
        file.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
        file.addEventListener(Event.COMPLETE, completeHandler);
        file.download(downloadURL, fileName);
    }

    private function progressHandler(event:ProgressEvent):void {
        var file:FileReference = FileReference(event.target);

trace(“progressHandler: name=” + file.name + " bytesLoaded=" + event.bytesLoaded + " bytesTotal=" + event.bytesTotal);
}

    private function ioErrorHandler(event:IOErrorEvent):void 
   {
        trace("ioErrorHandler: " + event);
    }
    
    private function completeHandler(event:Event):void
   {
        trace("completeHandler: " + event);
    }
}

}

Ok I am now going to read about crossDomain.xml…But I m still not clear where should I keep my file(to be downloaded) on the server for now my server is red 5 and it is running on windows…so please tell me the correct location both for windows and linux and the path that I should use in URLRequest accordingly