I have written code in Flex Builder 3.0 to load a PDF and
have gone by the tutorials at lynda.com and on adobe livedocs.
Everything seems to be fine with the code, but when I run the
program, I receive the following error, and the PDF will not load.
I am on a MacBook Pro running Mac OS 10.5.2. Any suggestions would
be appreciated.
ERROR:
Sorry, an Actionscript error has occurred:
Error #2044: Unhandled error:. text=PDFError
FLEX CODE:
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
<mx:Label text="Tearsheets" fontSize="18" />
<mx:HTML id="Tearsheets" location="app:/20080304_A_12.pdf"
width="100%" height="100%" />
</mx:WindowedApplication>
ERROR:
Sorry, an Actionscript error has occurred:
Error #2044: Unhandled error:. text=PDFError
FLEX CODE:
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
<mx:Label text="Tearsheets" fontSize="18" />
<mx:HTML id="Tearsheets" location="app:/20080304_A_12.pdf"
width="100%" height="100%" />
</mx:WindowedApplication>