:crying:
This might be a dumb question
i’ve just finished builing my flash site, and all i need now is a
“DOWNLOAD FILE” button so the user can download movie files,
exe files and pix etc etc…
does anybody have any ideas?? it would be a great help
using ACTION SCRIPT 2.0
thanx
FS2
hey Flashman,
dunno if it is still relevant but i needed this function myself…
this is what worked for me…
cheers,
mm
AS2:
on(release){
getURL(‘http://www.yoursite.com/downloads/filename.zip’);
}
AS3:
myDownloadButton.addEventListener(MouseEvent.CLICK, downloadFunction);
function downloadFunction(event: MouseEvent) {
var request:URLRequest = new URLRequest(‘http://www.yoursite.com/downloads/filename.zip’);
navigateToURL(request);
}