I'been trying to open a pdf document from inside of an Adobe Air Desktop application created with Adobe Flash CS 6.
I Used this code:
import flash.filesystem.*;
var thePDF = "mypdf.pdf";
var realFile:File = File.applicationDirectory.resolvePath(thePDF);
var destination:File = File.documentsDirectory;
destination = destination.resolvePath(thePDF);
realFile.copyTo(destination,true);
destination.openWithDefaultApplication();
This works fine when I am testing inside Flash CS6, but stops to work when I publish the application in an .exe file (Same case in MACOS with .app file).
I tryied with all the resources I found in google, nothing works!!!
Actualy I found a code from a AS3 library called Shu (com.cjt.Shu) but there is no any documentation recorded in the web.
If any body knows about this Shu or some other alternative even no Open Source. Please let me know.
Thank you all in advance, regards from México.