Quantcast
Channel: Adobe Community : All Content - All Communities
Viewing all articles
Browse latest Browse all 290743

how to embed pdf file in flash based android application

$
0
0

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 ducoment 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.


Viewing all articles
Browse latest Browse all 290743

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>