Force Download

Hi guys,

I’m having a bit of trouble with creating a download link.

Basically on my flash website I have a PDF of my portfolio which is available to download, I don’t want people to view it in the browser because I’d like to them to have it on their desktop so they can view it offline, etc

So far I have;

pdfbtn_over.addEventListener(MouseEvent.CLICK,goPDF);

import flash.net.FileReference;

var myPDF = “http://www.olirushworth.co.uk/OliRushworthPortfolio.pdf”;

var fileRef:FileReference = new FileReference();

function goPDF(e:MouseEvent):void{
	fileRef.download(myPDF, 'OliRushworthPortfolio.pdf')

}

I got like the tutorial from ;
http://www.blog.lessrain.com/flash-f…ks-in-flash-8/

any help would be fantastic as this is one of the last things to do before my site goes live, thanks