this line is at least one of your problems : var url:String="documents/{docs.selectedItem.documentName}";
try something like : var url:String="documents/" + docs.selectedItem.documentName; That should get you closer at least. From: flexcoders@yahoogroups.com [flexcoders@yahoogroups.com] Sent: 06 November 2014 14:02 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: downlaoding a file in flex. Sorry guys, am really sorry. this is the error it shows " HTTP Status 404 - /campuscholar/bin-debug/documents/%7Bdocs.selectedItem.documentName%7D "