View Full Version : How do you make a download link in flash?
oct10
10-15-2001, 06: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.
could u give me the code that u use for get url command
:rolleyes:
sky_doq
10-16-2001, 01: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
getURL(path) should work.
2sky_dog
geturl must have adouble slash:
geturl("flash//tutorial.zip")
sky_doq
10-18-2001, 08: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, 08:53 PM
thanks
get url work!!!
vBulletin® v3.7.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.