1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

embedded swf in a PDF - How to upload it using HTML?

Discussion in 'HTML & JavaScript' started by Fadi946, May 21, 2013.

  1. Fadi946

    Fadi946 Power Member

    Joined:
    Mar 25, 2009
    Messages:
    526
    Likes Received:
    77
    Location:
    With my parents :(
    I just wrote the question in the title...
    I created a PDF with SWF games inside it and sound and everything. (I used Adobe Acrobat to put the SWF into the PDF)
    My problem is, when I put it on my website using this code:
    HTML:
    object data="pdfBooks/<?php echo $book;?>" type="application/pdf" width="100%" height="100%">   <p>It appears you don't have a PDF plugin for this browser.  No biggie... you can <a href="pdfBooks/<?php echo $book;?>">click here to  download the PDF file.</a></p>  </object>
    The book appears and everything is fine, but the games don't work+Sound doesn't play on click.

    Does anyone have any idea how to get it to work? It looks simple but I couldn't find any solution!

    Thank you so much! I'm hoping for a savior!

    -FadiFlashi