作者:mobiledu2502876347 | 来源:互联网 | 2023-05-18 00:45
Hi I'm trying to open a pdf from air on an android device, I'm using Flash CC to author it. The code I have works in the Air debug launcher but fails on the device. The PDF is included in the APK. Am I addressing the PDF correctly? Does
嗨,我想在Android设备上打开一个pdf,我正在使用Flash CC来创作它。我在Air调试启动器中运行的代码但在设备上失败了。 PDF包含在APK中。我正确地处理了PDF吗?是否
openWithDefaultApplication();
work on android?
在android上工作?
import flash.filesystem.*;
var thePDF = "poppinchicken.pdf";
var realFile:File = File.applicationDirectory.resolvePath(thePDF);
var destination:File = File.cacheDirectory;
destination = destination.resolvePath(thePDF);
realFile.copyTo(destination,true);
But01.addEventListener(MouseEvent.CLICK, outputbox7zz);
function outputbox7zz(e: MouseEvent): void {
destination.openWithDefaultApplication();
}
1 个解决方案