open a pdf with AS3 on AIR app
Hi,
I'm trying to open a pdf when the user click on a button, for an AIR app.
Here's my code for that :
perso.addEventListener(MouseEvent.CLICK, print, false, 0, true);
function print(event:MouseEvent):void{
var myPDF = new URLRequest("tout.pdf");
navigateToURL(myPDF);
}
Problem : it's working on the emulator of Adobe flash CC, but when I'm installing the apk on an Android device, it doesn't work. (nothing happen when I click on "perso").
Any idea what could be wrong ?
(Note : I've add the "tout.pdf" to my apk in the publish setting like that :
)
