Link to home
Start Free TrialLog in
Avatar of gikicikmaz
gikicikmaz

asked on

How to let user to download zip file in folder?

Hi everyone,

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

Example:
           Http://www.flashnice.com/
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

on(press){
    geturl("/docFolder/myfile.zip")
}

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

Http://www.flashnice.com/ocFolder/yfile.zip

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

on(press){
    geturl("/docFolder/myfile.zip")
}


I did use below code

on(press){
    geturl)"myfile.zip")
}

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).

Regards,
Giki Cikmaz
ASKER CERTIFIED SOLUTION
Avatar of henryww
henryww

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gikicikmaz
gikicikmaz

ASKER

Hi,

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

http://gikicikmaz/ib/pw01.html

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.

Regards
Giki Cikmaz
Hi,

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

getURL("http://www.flashnice.com/docFolder/myfile.zip","_blank")

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

getURL("http://www.flashnice.com/ib/docFolder/myfile.zip","_blank")  

Now is working.

Thank you.
Quick reponse.

Thank you very much.
glad u solve it.

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

cheers