2 Replies Latest reply on Dec 28, 2010 3:35 PM by Gregory Lafrance

    Okay... i need some help.

    kathy1-8759

      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!

        • 1. Re: Okay... i need some help.
          kathy1-8759 Level 1

          Can anyone help me, or is this even possible to do?

          • 2. Re: Okay... i need some help.
            Gregory Lafrance Level 6

            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