Copy link to clipboard
Copied
Im trying to link a pdf file from my computer to a project. I imported a flash Catalyst project into Builder and need step by step instruction to create a hyperlink to a pdf on my computer. If anyone can help me with this it would be greatly apriciated. Thanks Everyone!
Copy link to clipboard
Copied
Can anyone help me, or is this even possible to do?
Copy link to clipboard
Copied
This code opens a PDF that is on the web in a new browser window:
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script><![CDATA[
private function showPDF():void{
navigateToURL(new URLRequest('http://help.adobe.com/en_US/flex/using/flex_4_help.pdf'));
}
]]></mx:Script>
<mx:Button label="Show PDF" click="showPDF();"/>
</mx:Application>
But in general, Flex apps can't access the hard drive as they are web apps.
If you are creating an AIR app they can.
If this post answers your question or helps, please mark it as such. Thanks!
http://www.chikaradev.com
Adobe Flex Development and Support Services