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

Flash Embebed Menu??? javascript comunication?

vitors
Registered: Mar 17 2008
Posts: 5

Hi,

i'm developing an ebook and i'm asking if it is possible to create an embed flash menu (multiple buttons) and use javascript to communicate between the .swf and the pdf. (like a simple navigation bar)

if i have a simple document script in the pdf like:

function gogo(number) {
this.pageNum = number;
}

how can i call it from the embed swf file?

is it possible?

thanx in advanced

My Product Information:
Acrobat Pro 8.1.2, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
You can't do this in any of the current Acrobat versions. At least not easily. Why not use an Acrobat JavaScript menu? it's much easier.

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

jolinar
Registered: Jan 21 2009
Posts: 2
Hi!

Is it possible to do what vitors asked with Acrobat 9?
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Yes and no.

It's possible in Acrobat 9 to display flash controls. These controls can communcate with the Acrobat JavaScript environment. I gave a talk on this topic at the PDF central conference in November of last year. You can download the presentation file here.

http://www.pdfcentralconference.com/pdfcentralconference/descriptions.php

Under "Scripting Rich Media"

The problem is that menus are usually popups, and there is not yet an effective way to display a flash popup at a specific location on the PDF page. The technology is brand new, so I expect there to be big changes in the future. If I were you I'd wait for at least the next Acrobat update before putting any flash features in to a document that will be distributed.

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/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

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

jolinar
Registered: Jan 21 2009
Posts: 2
Oh, okay. Thanks for the answer thomp!!