Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


How to let user to download zip file in folder?

Posted on 2003-03-09
Medium Priority
Last Modified: 2010-04-03
Hi everyone,

I want to use flash that has link to zipfolder and people can click and download.

is my home page and I have html page and includes the Flash file.
Flash file contains 3 link to pdf file or zip file. I use the


but It doesnt download. in the address bar I can see


in the folder and zip file name first charecter are missing! I use this on my computer to see if is work. I want to upload the remote server that, they  publish this webpage. But I dont know where I am making mistake.

Again I have a 3 html page and 2 folder. Folder 1 is _image that contains picture and swf file for flash and folder 2 contains document and zip file for download.

Now Do I have to put doc/zip folder in to _image folder because my swf flash file is in _image folder or do I have any other way to change the below code


I did use below code


and it work but I want to keep all the doc/zip folder for download in seperate folder.

Is this posible? And If so I will be happy to learn how to do?

I thank you in advance for your great cooperation to me (us).

Giki Cikmaz
Question by:gikicikmaz
  • 3
  • 2

Accepted Solution

henryww earned 80 total points
ID: 8101344
hi giki,

i did that exactly in my script ...

i can get the file no problem. i don't why it will remove the 1st character, but ... try using the complete URL ...

hope this help


Author Comment

ID: 8101474

I did before and try agin the what you said. I search and found your previuos topic on this issue.

My computer name is gikicikmaz. And I use IIS 5.0 to publish web site localy. ib is my virtual folder for html page. pw01.html is my test page that contains flash swf.

I enter address in explorer as


page is open I enter my user name and password and movie starts. In the success login page (as part of the same movie) I put text as download.zip and converted flash button and add the code as you said.

But this time I am geting 401 error.

What I am trying to do is this:
 I have few C++ code that student might need to use their home work. They enter the web page enter the user name and password and download their code.

Now server is to old and we have 33.6 and 56Kbs access only. (Not ADSL yet:))) ) Also telephone cost compare USA is bit expensive. The step is simple and because of flash it will run quickly.

Now I still can make the download section and whend it downloads I want the dialog box (not to use save as option) uses my own customize download dialog box that user cannot allow to change the zip folder name and place it C:\ib\download automaticaly.

I have too reason on this. Student who going to use this zip file shouldn't modify a name because their code use this root to open the zip in their C++ form.

This and some other things makes student to developed their code seperatly (because each student have diffrent zip folder name) but use same root (C:\ib\download)to access their downloaded zip documents.

And when I get the students C++ code I might be able to download right zip file in my computer in same folder as
(C:\ib\download) and compile their code and see if they are succesful or not.

Explain a lot and i am sure solotion is to simple but I cannot figure it out because I am too new in Flash MX. (2 days only).

Server that will going to publish this web-site doesn't allow to run any asp or script (no vbScript and no JScript)
as well as I wanted to secure site for student.

Only problem I am having is download section. I hope I will get quick response again.

Thank you.

Giki Cikmaz

Author Comment

ID: 8101590

Okay, it is my mistake. I create a virtual folder in IIs 5.0 and forget to add that root in to flash.


was correct. But because of creating new virtual folder and name it to  (ib)  I have to add this in to above line as:


Now is working.

Thank you.

Author Comment

ID: 8101596
Quick reponse.

Thank you very much.

Expert Comment

ID: 8101974
glad u solve it.

& u are welcome ... i didn't do much :)


Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.
Suggested Courses

580 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question