Link to a PDF from Flash?

This may be obvious, but I can't find how you create a link
in Flash that will download a PDF from a folder within the same
site. Any help would be appreciated.

You can link directly to a PDF file the same way you link to
anything else, if you are familiar with regular linking. Do you
know how to do that? Look up "getURL" for AS 1/2 or "navigateToURL"
on AS3.
Or else you might want the user to be forced to download the
PDF, rather than open it in the browser? In that case, check out
FileReference.download. The user docs actually have an example
demonstrating a PDF download:
http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveD ocs_Parts&file=00002210.html
HTH

Similar Messages

  • How to target a file(pdf) from Flash CS3

    Hello,
    I have some rather heavy stuff that have been converted to a
    more friendly pdf file
    I have also created a print button in my fla file in Flash.
    How do I set it up so when you press the print button, it
    opens the standard printer dialog window or download the file and
    open the pdf file so the client can decide what do do with it?? or
    something similar to that.
    I know that there is a "print" function in the action library
    but I just can't make it work
    The Pdf File is in a different scene that when a press the
    print button it goes to it with no problem.
    on (release) {
    _root.gotoAndPlay("Scene12", 1);
    I will really, really, really, appreciate some of your could
    take me through the procedure.
    Regards
    PDF File created in Quark Xpress 7 and sits within the Flash
    project
    Apple Mac Pro
    Flash CS3

    You are better off simply linking to the PDF from the Flash,
    using getURL or another like function, so that the PDF opens in
    Adobe Reader. Adobe Reader handles the printing for you
    automatically, and Flash printing is not what it should be.

  • Opening a PDF from flash button

    Hi guys,
    I have not done this for a while and the old source files I got do not seem to work anymore in flash pro cs5. In the past I used ZINC and flash and these code lines:
    the link to the PDF is loaded from an XML:  " ... url="data\\presentations\\EN_Vienna_Opening_Session\\EN_JShepherd_Past&Present.pdf" ... "
    the link is then stored in a flash variabl:  " ... tPath = contentItems[0].childNodes[2].childNodes[3].attributes.url; ... "
    the PDF is then opened with ZINC with: " ... mdm.System.exec(mdm.Application.path+tPath); ... "
    I know this is not forum to support ZINC, but is there any other way of opening PDF files (so they open Acrobat outside FLash)?
    Thanks,
    Nik C

    Have you already tried adding
    htp.p('Content-Disposition:  attachment; filename...as described here?
    http://download.oracle.com/docs/cd/B32472_01/doc/appdev.300/b32469/up_dn_files.htm#CIHDDJGF
    Maybe it solves the problem, in case IE is a little bit picky. But I really don't know.
    Patrick
    My APEX Blog: http://inside-apex.blogspot.com
    The ApexLib Framework: http://apexlib.sourceforge.net
    The APEX Builder Plugin: http://sourceforge.net/projects/apexplugin/

  • Fast Web View breaking links/bookmarks in PDFs from Word 2007

    I'm running Acrobat Pro 8.1.2 on WinXP, and I recently noticed an issue with PDFs that I'm creating from Word 2007. If I turn on the setting "Save As optimizes for Fast Web View," any links or bookmarks in the file break when I do a Save As. If I turn the setting back off, Save As doesn't break them.
    I had had problems creating the PDFs using the PDFMaker plug-in for Word, so I used the Save As PDF or XPS feature from Microsoft instead.
    PDFs created using FrameMaker are not giving me problems.
    I don't know whether this is related, but the Settings button on the Save As dialog box is no longer active. I'm sure I was able to click it before, but I can't now. And that goes for PDFs from Word or FrameMaker.
    Anyone have any clues?
    ===========================================
    Rick Henkel
    http://rickhenkel.googlepages.com/index.htm

    This is related to a bug in the direct PDF output from Word 2007. I was told that Microsoft has fixed this bug in the final SP2 release (so when the service pack becomes available, this problem will not be present).
    Until then, the workaround is indeed to turn off the "Save As optimizes for Fast Web View" preference in Acrobat (Edit > Preferences > Documents, under Save Settings).
    Shlomo Perets
    MicroType * http://www.microtype.com
    FrameMaker/Acrobat training & consulting * FM-to-Acrobat TimeSavers
    "Improve Your FrameMaker Skills" live web-based training sessions

  • Creating a pdf from flash

    im trying to generate a pdf file from a swf form... is it
    possible ?

    No not really. There are tools like
    Flash
    Handout that you can buy - but if money is not an option, there
    is the PrintJob command in Actionscript. You can set up Flash to
    print the form. The only other way I know of is to send the details
    from Flash to a PHP file and use an extention like
    domPdf to
    convert it to a PDF file.

  • How do I link to a PDF from a web app?

    Hello, can anybody help me with this please.
    I have a web app that is listing current vacancies (see it here http://pattonnz.businesscatalyst.com/about-situationsvacant )
    As you can see the link to the PDF job description file is not right. What is the best way to link to a PDF? At present the web app is using a field type "Text (hyperlink)" to make the connection to the uploaded pdf but this obviously isn't working right (well it works, but it's a bit mangled and unnacceptable). There doesn't appear to be a field that will let me direct a link to the appropriate folder and file.
    Web apps are pretty new to me so any help greatly appreciated.
    Cheers
    Grant

    Hi Grant.
    Delete that custom field.
    Create a custom field type - image. Image is actually media type and you can select more then just images. This will allow you to browse the file in the admin and upload it.
    The tag will be what you call it.... {tag_pdffile} - This would try and render an image html if you used this so...
    You just get the raw value which is _value so... {tag_pdffile_value} and you form your own HTML in your layout.....
    <a href="{tag_pdffile_value}" title="Download this file">Download PDF</a>

  • Link to a page in a pdf from flash

    I am trying to link from a flash site to a specific page of a
    30 page PDF and have had no luck.
    I can open the PDF with a getUrl but can not have the PDF
    open to the page I need.

    I've been trying to figure something like this out for days.
    What I want to create is a CD that will have many PDF files that
    are accessed with a Flash interface. I have been struggling with
    getting the PDF files to link to a button. Online files with
    complete http addresses work, but I need this to be a stand alone
    CD version. So far getURL does not work for this. Anyone ever try
    something like this? I don't care how the PDF files opens. In a
    browser window is fine and so is in Adobe Acrobat Reader.
    Thanks

  • Opening external pdf from flash exe

    I've looked around the site and I havent found anything
    refering to this.
    I'm creating an Interface in flash which will browse through
    a list of pdfs. This interface will be published on a CD-ROM for
    distribution.
    How do I launch the pdfs directly from a link in the flash
    exe? Since it is not playing within a browser I can't use getURL.
    It's been years since I've had to do this, and the last time
    I used the fsCommand to launch an exe file created in Director
    which would in turn open the pdf file. I'm hoping there is a better
    solution.
    Thanks for reading this!

    Try FlashJester JStart
    http://jstart.flashjester.com
    Download the an evaluation copy and try it yourself.
    Please look at the example files given.
    Regards
    FlashJester Support Team
    e. - [email protected]
    w. - www.flashjester.com
    "This has been one of the most impressive and thoroughly
    pleasant
    experiences of customer support I have ever come across -
    astounding!"
    Director - hedgeapple

  • Create link to help topic from Flash file

    We have started using Flash to develop our online learning
    modules. So far they have been stand alone modules accessed from an
    internal web site, published as .EXEs. Our latest Flash module is
    related to a system for which we have an HTML help file. We'd like
    to embed the Flash module in the help file b/c we want a link in
    the Flash module to open a specific help topic.
    I can get individual .SWFs into the help file but these Flash
    modules are more complex, using many .SWFs for navigation, the TOC,
    the frame, and for each interaction. In other words, the main .SWF
    (or .EXE) calls many other .SWFs as the user navigates through the
    module.
    If I can't get the Flash module into the help file, and I can
    only link to it as an external file, can a link from within a .SWF
    in the Flash module open a specific help topic in the .CHM?
    Any other ideas?
    Thanks for your help,
    SueM2

    This question was answered by kglad, on Saturday, August 11,
    2007 10:13 AM
    Answer
    no it doesn't. getURL() causes no security issues unless you
    try to open the html locally and (try to) access something on the
    internet.
    unless your "flash site" is your local computer there is no
    security issue. if your local computer is an internet server, you
    just need to set the security settings for your local file and give
    it permission to access the internet zone.

  • Open PDF from flash

    I want to open pdf files from buttons, the structure of my
    project is this:
    one windows project (exe) called Intro (this is only a
    presentation) a has one button linked to a .swf file where are the
    buttons, I know that i can not open pdf files from this buttons,
    What solutions I have? two question more, can insert one fscommand
    folder into the other fscommand folder?. how make a bat file and
    how insert the command into the bat file?
    This is for a Multimedia CD
    Text
    Text
    my mail

    Don't think you can do this directly, as far as I know
    (correct me if I'm wrong anyone) you can use fscommand to launch
    applications but not specific files. I have done it in the past by
    launching an app written in Applescript that in turn opens a
    specific file, obviously this is mac specific but the same can be
    achieved on a windows machine using a .bat file (I think).
    I would be more specific but it was ages that I did it and I
    can't find the project now.

  • Saving PDF from Flash

    Just wondering if I can make a PDF file from data within my Flash application, using a native function say like the prinjob or do I have to utilise a third party application like AlivePDF. I have used printjob before to send flash files to printer but this time i want flash to make a PDF file specifically. Would love a native Flash solution for this, don't really like mucking about with third party components, plugins and API.
    Any help or assistance would be quite welcome.

    Yes it will be on a server but a very restricted .edu server so I don't think I even want to entertain the thought of using fpdf for this job.
    Right now, just explained to client to that we will be using printjob and relying on user to have PDF driver. All of the education department's computers in my state in Australia (QLD) are using a Managed Operating System (MOE) that has the PDF printer driver installed.
    Just put some good instructions on the flash app and left it at that. When I have some more time would be interseted to check out Alive PDF.
    Thanks for all your help!

  • Link to external URL from flash site

    Is there any way to link to an external URL from your flash
    site without having the flashplayer prompt you to change your
    settings and allow access to that page? (this only applies to swfs
    viewed through a browser)
    the only way around this i've found isn't very useful - you
    have to put a small xml file on the host server where the page you
    want to link to is located. i seriously doubt every site you want
    to link to will allow you to put an xml file on their host server
    just so you can link to their page. the code in the xml file just
    tells flashplayer that the site you are trying to access is safe.
    it's called crossdomain.xml
    anyone have an answer?
    thanks!

    This question was answered by kglad, on Saturday, August 11,
    2007 10:13 AM
    Answer
    no it doesn't. getURL() causes no security issues unless you
    try to open the html locally and (try to) access something on the
    internet.
    unless your "flash site" is your local computer there is no
    security issue. if your local computer is an internet server, you
    just need to set the security settings for your local file and give
    it permission to access the internet zone.

  • Linking to a pdf from an ebook

    A curious problem:
    Using hyperlink panel, I referenced a "pdf" within a document and exported to epub. The epub highlights link as a hyperlink, but either does nothing or jumps back to previous entry in content list.
    I opened up the epub and added the pdf file to "Misc" folder and linked to it using standard "a ref" code, as in:
    <p class="text"><a href="/Misc/Harriman97LakesE.pdf"><span class="txtbital">Lakes Chart</span></a></p>
    Adobe Digital Editions simply crashes when I hit the hyperlink, and Firefox "e" addon pushes to next item in content list.
    I'm missing something simple here, but can't figure it out . . . any ideas?

    After a little extra research, I'm sure you are correct; it's the format rather than an incorrect link. The issue is a large table in InDesign that would be unusable, I think, in an epub; my thinking was to make it an external file that would be linkable. Perhaps an image . . .
    Thanks for the response

  • Open a  PDF from Flash projector file?

    Hi everyone,
    im using Flash CS4 slide presentation to make a education CD. In the end of the slides i want to open a pdf file.
    How can i do it? Is it a east way to do it?
    I publish the project as a projector file. I tested to use GetURL but the file wont open. I have the pdf-file
    in the same folder as the projector exe-file.
    The education will be distributed on CD-ROM.

    you need to adjust your flash player security settings:
    http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.htm l

  • Create a pdf from Flash

    I am developing a Flash/Flex based web tool that needs to output a
    pdf(which will contain dynamically created graphs) that will then be
    stitched to other pdfs and delivered as a single pdf.
    Does anyone have any suggestions about where I should start to create this?

    you can use fPDF server-side code to create a pdf.  that's the most satisfactory method.  there's also an unsupported component avaible that has limited ability to create a pdf.

Maybe you are looking for

  • [SOLVED] Puzzled: Web site visible on network but not outside network

    Edit: Ok, nevermind . . . somehow the problem has resolved itself. Perhaps my ISP was having a bad hair day or something. I'm puzzled by this small problem I'm having. It is NOT a critical problem or anything, just something I'd like to solve. I've i

  • Document upload with new authorization type

    Dear All, A document "x" has been loaded in the system with the authorization group "MEIN" . Now the same document is to be loaded in the system with another new authorization type "SWE".While doing so, the version is being taken as "Version 2" .Whea

  • Ideal model for accesing data

    i'm trying to transfer some data (about 100,000 rows) to mysql database. i already has my Data Access Object(DAO), so i reuse it. when my DAO add about 500 rows, this exception occurs: com.mysql.jdbc.CommunicationsException: Communications link failu

  • Whenever I try to start Edge Animate CC 2014 it tells me that I am missing d3dx9_43.dll.

    Hello, This has been happening to me since the regular Edge Animate CC. Whenever I try to start the program it simply tells me that I am missing d3dx9_43.dll. I tried installing the latest directx 9.0 from june2010 and I even took the seperate dll fr

  • Getting an interrupted exception when trying to bring down the service

    Hi, From the client side , I started an invocation service which is giving an interrupted exception when trying to shut it down. 2013-08-01 12:21:15.576 PDT ERROR -  -  -  - Oracle Coherence 3.7.1.6 (thread=Invocation:customerLoaderWM:EventDispatcher