Announcement

Collapse
No announcement yet.

Flash Object links to PDF not working prop.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Flash Object links to PDF not working prop.

    Hello:

    I have a program that runs mostly through Flash Objects and within these Flash Objects I have links to PDF's that I wish to open in _blank windows. IN flash I have it set up with a getURL to the file name "nailheads.pdf" When I test it in flash it works, but once I test the Project in AMS it opens the new window but doesn't find the file. I noticed it reads http://nailheads.pdf in the browser window. Is there anyway to do this?

  • #2
    Re: Flash Object links to PDF not working prop.

    Yep it's easy to do this but I'm not sure what the error is in your case. If the link is http://yourfile.pdf then it won't work from Flash and if it isn't then it should work from AMS. There's some info missing here probably. [img]/ubbthreads/images/icons/smile.gif[/img]

    I would say the best thing is to make sure you check "external reference" for your Flash and then put it, along with your pdf, in your distribution folder. That should work.

    Corey Milner
    Creative Director, Indigo Rose Software

    Comment


    • #3
      Re: Flash Object links to PDF not working prop.

      I have tried a few things. I have made sure that the external references is checked, the PDF file is in the same folder, and in the flash movie I have a button that has the actions "On release-Get URL "nailheads.pdf"

      In flash the button works. When I take it into AMS and click the button it opens explorer, but it searches for "http://nailheads.pdf" and nothing! Not sure what to do?

      Comment


      • #4
        Re: Flash Object links to PDF not working prop.

        Don't put the link in your flash, put it in your AMS. Make your button into a fscommand link, i.e. fscommand ("launchPDF"); and then just use a FILE > OPEN acttion (%SrcDrv%/yourfile.pdf) in your Flash Objects OnFSCommand state. This will also now give you the capability to do a check and see if they even have a pdf viewer installed and install one from your CD if they don't. It also allo2ws you to control the link from AMS so you don't need to re-edit your Flash if it changes. There are also other benefits.

        Best of all it takes only about one minute to setup. [img]/ubbthreads/images/icons/smile.gif[/img]

        Corey Milner
        Creative Director, Indigo Rose Software

        Comment


        • #5
          Re: Flash Object links to PDF not working prop.

          Thanks a ton! I was actaully looking at FScommands, but you nailed it! Thanks again.

          Comment


          • #6
            Re: Flash Object links to PDF not working prop.

            Ok, thought I had it, but what happens when I need to have more than one PDF FSCommand within the project. I added a couple more and when one button is selected it goes through and opens each PDF. How would you verify which one you wanted

            Comment


            • #7
              Re: Flash Object links to PDF not working prop.

              Thats very easy. Just label your fscommands, i.e.:

              Link 1 = fscommand ("openPDF","sports");

              Link 2 = fscommand ("openPDF","news");

              Link 3 = fscommand ("openPDF","weather");

              And then use a FLASH OBJECT > GET PROPERTY > LAST FS COMMAND ARGS on your Flash objects OnFSCommand event to extract the fscommand label. Then you can simply open it useing a file > open action. [img]/ubbthreads/images/icons/smile.gif[/img]

              Corey Milner
              Creative Director, Indigo Rose Software

              Comment

              Working...
              X
              😀
              🥰
              🤢
              😎
              😡
              👍
              👎