How can i make a button download a PDF? January 31, 2011 03:24PM | Registered: 13 years ago Posts: 1 |
Re: How can i make a button download a PDF? February 01, 2011 12:38PM | Admin Registered: 15 years ago Posts: 547 |
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
}
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.