PDA

View Full Version : How do you make a download link in flash?


oct10
10-15-2001, 05:41 PM
How do you make a download link in flash?

In my movie.. have a button that once click will download .zip file.
But i can't get it to work.
I have try get url command and put point it to the file. but it doesn't seem to work.

orox
10-16-2001, 04:23 AM
could u give me the code that u use for get url command
:rolleyes:

sky_doq
10-16-2001, 12:31 PM
Here is how to do it.

example: you have a map with your flash and another map called "mapname" and there is a file named "filename.extension".

The you want to get the filename.extension from your flash. You use the GetUrl command from flash and you start with the mapname then a "slash" ( forward or backward find it out ) the the filename.extension

like this: geturl(mapname/filename.extension

or as another example: geturl(flash/tutorial.zip)

so don't start with a "slash" ( / )

by the wat are you using windows ? Because I do and I don't know if it works on the mac or another platform, but I do think so.

FD

tg
10-16-2001, 03:54 PM
getURL(path) should work.

orox
10-17-2001, 04:28 AM
2sky_dog
geturl must have adouble slash:

geturl("flash//tutorial.zip")

sky_doq
10-18-2001, 07:10 PM
Oh is that new in flash 5 ?

I mostly us flash 4 which the double slash isn't needed.

bye

FD

oct10
10-18-2001, 07:53 PM
thanks
get url work!!!