These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Opening a .swf movie in a sized window from a link in a PDF online.

jstoli
Registered: Mar 25 2008
Posts: 5

Hi:

I created a training PDF file that posted on a website I developed at work.

I want people to click on a link I put in the pdf and the swf movie to open in a seperate browser window. I aslo want the window sized the same size as the swf movie so it is not distorted.

I inserted a link in the pdf and used the code:
app.launchURL("http://www.mycompany.com/movie.swf", true)" in the RUN A JAVASCRIPT ACTION. This takes care of having the movie open. It works just great, but how do I sized the window. I have tried different codes but nothing seems to work. I would greatly appreciate any help.

Thanks

Jeff

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
There isn't a great deal of control from a link inside the PDF. So, instead of linking directly to the SWF, link to web page that uses the HTML JavaScript fucntion, "window.open()", to redirect (and set the size) to a page with the proper Object tag for displaying the SWF.

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/]http://www.adobe.com/devnet/acrobat/[/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script