Find how you can render PDF files in Air. This process is very simple and will be done in just a few minutes.
1. First, create a new Air project named PdfReader that will also create an mxml file named PdfReader.mxml.
Open it so we can begin to edit our code.
2. Like for the WebBrowser we will use the HTML component.
3. The only thing that we have to do is to check if the user has a correct version of Adobe Reader installed because if the user doesn’t have Acrobat Reader 8.1 or later that will not work.
4. To do so, we have to detect the PDF capability with the static property pdfCapability of the HTML class.
The pdfCapability property can be one of the 5 values :
In our case we want to check the if the value is STATUS_OK
5. So in our code, add an HTML component to the…
4198 readers
18131 readers
1293 readers
276 readersThere are times were you need to take an FXG (Flash XML Graphic) from Photoshop, Illustrator or Flash Catalyst and load it during runtime. FXG is usually handled by the MXMLC which turns the declarative language into ActionScript code. The utility class will do just that and convert the text string into ActionScript
1433 readers
969 readers
1030 readers
981 readers
971 readers
1937 readersYesterday I posted a blog post about the fact that FXG code can increases your SWF container size and tax your CPU, so you should take that into account when deciding if it’s better to load images on runtime, embed assets or use FXG code. Adding optimized FXG or MXML Graphics (MXMLG) is the
8,004
Subscribe to RSS headline updates from:
GurusUnleashed
Powered by FeedBurner
Curious what others are searching for? Below are the most popular search terms over the last 30 days.

