Im trying to create android and iPad application using the flash CS 5. Facing some problem to open the PDF file using some button inside my application.

I have PDF file and I want, when I press some button then PDF file will open. I'm using this code



myPDF.addEventListener(MouseEvent.CLICK, ldr);
function ldr(event:MouseEvent):void {
navigateToURL(new URLRequest("Dimensions.pdf"), "_blank"); }




this code is working properly in the computer but in android tablet I got this error message “ERROR, the document path is not valid”

Note: (my flash file (application file) and PDF file is in the same folder in my computer)



Please suggest me how I can open the PDF file using the button inside of my application.