How can i make a button download a PDF?

Posted by user406371 
How can i make a button download a PDF?
January 31, 2011 03:24PM
I am using FlashEff 2.0

I would like a button i created to download a PDF. How would i go about doing this?
Re: How can i make a button download a PDF?
February 01, 2011 12:38PM
One way is to add this code:
flasheffInstance.addEventListener(MouseEvent.CLICK, clickHandler)
function clickHandler(ev:MouseEvent):void{
//the code for downloading the pdf

}
or this code if you use flasheff2code:
flasheffInstance.addEventListener(FLASHEFFEvents.MOUSE_DOWN, mouseDownHandler);

function mouseDownHandler(evtObj:FLASHEFFEvents):void
{
//the code for downloading the pdf

}
Sorry, you do not have permission to post/reply in this forum.