A Flash Developer Resource Site

Results 1 to 18 of 18

Thread: open pdf in flash

Hybrid View

  1. #1
    Member
    Join Date
    Jul 2005
    Posts
    79

    open pdf in flash

    Hello

    i want to open pdf file in flash movie area so i have read some queries in this forum regarding this topic but i want to know that HOW I CAN MAKE BATCH FILE (.bat) OF A PDF FILE (.pdf) ????
    I NEED IT URGENTLY PLZ SOMEONE HELP ME OUT

    Thanxxxx in advance
    Regards
    Last edited by luckyriz; 07-17-2005 at 04:19 AM. Reason: there r some spelling mistakes

  2. #2
    Member
    Join Date
    Jul 2005
    Posts
    79
    Please Anyone help me out
    i have a deadline
    so please help me
    regards

  3. #3
    associate admedia's Avatar
    Join Date
    Oct 2001
    Location
    is
    Posts
    1,347
    just link to the pdf.
    on(release){
    getURL("mypdf.pdf", "_blank");
    }

    not sure what else you want...

  4. #4
    Member
    Join Date
    Jul 2005
    Posts
    79
    this is not working

    Basically i have read about "open pdf in flash movie area" in this forum the link of that page is

    http://www.flashkit.com/board/showt...=fscommand+exec

    there all the guys talking that first made the batch file of pdf then call it by
    FSCOMMAND
    But i dont know how to make Batch file
    So Please help me out
    regards

  5. #5
    Member
    Join Date
    Jul 2005
    Posts
    79
    Anybody help me
    i have deadline
    thanx in advance

  6. #6
    Simplemodern
    Join Date
    Mar 2005
    Location
    Canada
    Posts
    50

    fscommand

    fscommand can only be used with flash projector files, and remember, when you use fscommand, the files must be in a folder under the flash projector file called "fscommand", the best wya to do this is not to batch the file but top write a small visual basic file that uses shellexecute to open the pdf, thats how i did it for one of my projects

  7. #7
    Member
    Join Date
    Jul 2005
    Posts
    79
    Can u send me the way of execute pdf in flash movie

    i mean the code and the procedure

    i will be very thankfull to u

    regards

  8. #8
    Member
    Join Date
    Jul 2005
    Posts
    79
    have anyone any solution of my problem????

  9. #9
    Simplemodern
    Join Date
    Mar 2005
    Location
    Canada
    Posts
    50

    procedure

    ok, what you need to do, is for your button, use the code

    Code:
    on (release) {
        fscommand ("exec", "openpdf.exe");
    }
    then, you need to get yourself a copy of visual basic, and then in that you need to open a new porject, standard exe, double click on the form, which is like the main thing on the screen so it goes to the code, then put this there

    Code:
    Call Shell("URL OF FILE ON COMPUTER")
    End
    then on the form options on the right, you need to find form visibility and turn it to false. then export this file as opendpdf.exe and place it in a folder called "FScommand" that is in the same directory as your flash projector file.

    your other option is to use a .bat file. to do this you open notepad and type the following:

    Code:
    @echo off
    start pdfname.pdf
    exit
    then click save as and save it as what ever, say openpdf.bat, and there you have that, place that file in the "FScommand" folder, along with your pdf and the flash projector above that folder, and it will open it. if you use the bat just change your flash button from openpdf.exe to openpdf.bat

    any more questions and id be happy to answer them

  10. #10
    Member
    Join Date
    Jul 2005
    Posts
    79
    Thanx for ur help
    the process of batch file is not working i send a file check it.
    and the first thing through visual basic i cant understand that r u talking that i need a visual basic software and do all this in that???
    or the option of visual basic is in flash also ???
    waiting for reply
    Regards
    Attached Files Attached Files

  11. #11
    Member
    Join Date
    Jul 2005
    Posts
    79
    Miss or mr. simplemodern please help me ??????
    thanxxx in advance

  12. #12
    The Flashman earl223's Avatar
    Join Date
    Sep 2000
    Location
    Marikina City, Philippines
    Posts
    876
    First of all, you cannot open PDF in Flash area.

    If you're on the web and you want to open a PDF file, follow the code given by ADMEDIA.

    If you've got a projector, read and follow the instructions given by SIMPLEMODERN. All you need is a batch file for this.
    i eat actionscripts for breakfast

  13. #13
    Member
    Join Date
    Jul 2005
    Posts
    79
    thanxxxx a lot

  14. #14
    Junior Member
    Join Date
    Jul 2009
    Posts
    1
    this works except....
    on(release){
    getURL("mypdf.pdf", "_blank");
    }


    when I click the button, it opens the window that gives the user the opportunity to save, but it opens this 'option' window 3 times when I'm only clicking the button once. Any idea why this is happening??

  15. #15
    Junior Member
    Join Date
    Dec 2009
    Posts
    3
    This is a nice open source flash component that displays PDF's nicely in the browser http://www.devaldi.com/?page_id=260

  16. #16
    Junior Member
    Join Date
    Nov 2009
    Posts
    15
    Why not Convert the pdf to flash?
    I think it's easier and no coding part is necessary. This PDF to Flash converter can be a good choice.

    hope this would help.
    Last edited by seanfts; 03-21-2011 at 01:50 AM.

  17. #17
    Junior Member
    Join Date
    Jun 2010
    Posts
    1
    Quote Originally Posted by luckyriz View Post
    Hello

    i want to open pdf file in flash movie area so i have read some queries in this forum regarding this topic but i want to know that HOW I CAN MAKE BATCH FILE (.bat) OF A PDF FILE (.pdf) ????
    I NEED IT URGENTLY PLZ SOMEONE HELP ME OUT

    Thanxxxx in advance
    Regards
    Ok.. this is a very common problem that we encountered, in order for you ot open the PDF files in a flash is by creating Link, Here's a good resource that might help you. http://www.flashkit.com/board/showth...ght=protection

    Escort Paris

  18. #18
    Junior Member
    Join Date
    Sep 2010
    Posts
    21
    May this work out in Flash: on(release){getURL("mypdf.pdf", "_blank");}. But, I insist on Converting PDF to Flash through software way if you don't mind. I recommend a free online converter
    PDF to Flash Converter, Click "Free convert now" button at this page.
    Last edited by MarcosCoon; 11-03-2010 at 04:34 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center