I need to have my head examined. But..
I have a flash (swf) file that has a couple links on it.
It works great on a webpage. I'd like to take those links and keep them active when I
embedd that swf in a pdf page.
I know the PDF can either have PDF page navigation or URL navigation links when created with Acrobat.
I can't simplify the problem and make the whole swf area a single PDF invisible link
as I would loose some of the interactive properties (clicking) of the flash itself.
For simplicity lets assume I have a 4 page PDF
PDF page 2 has a small swf on it that has two clickable links on it.
In an ideal world the first swf link would launch a browser window to the specified URL,
the second link would goto page X of the PDF.
Nothing like cutting your teeth creating 'interesting' projects!
Can it be done? If so how?
With the exception of links I have a working flash flipping book catalog in a pdf.
So that means.. Start with an image. (or pdf if you have an older version of flash)
Make it into a single page flash (swf) to be able to add roll over effects and links.
This single page swf will be loaded by the flip book catalog swf.
Take that catalog swf and insert it into a new PDF...
This flipping book swf utilizes resources (the page swfs and xml file describing the catalog)
so use the Resources tab in the Advanced options section of the Insert Flash Dialog to add them to the PDF.
It's insane. It works GREAT. But if that flip book was on say page 2 of the pdf file, and I either wanted
the innermost swf file to navigate to page 4 of that pdf file or bring up a browser URL.....
I have actually been able to take a flash photo gallery and get it to run inside a pdf. Ya, I know.. WHY? But I CAN.
All the gallery nav buttons, music, voice overs, and stuff work great. I am only having a problem with links to places
outside of the inserted flash object. They appear to be disabled by the containing PDF.
I know that flash can pass messages outside itself, like DB data lookups via AJAX or SOAP,
so maybe the answer lies in a form of message passing going to Adobe's scripting (Javascript) language?
Thanks.
--Ron--
without spending a lot of time answering today I will give you a few quick pointers you may be able to proceed with...
To navigate to a page in the PDF you will use actionscript to make a call to Acrobat javascript to go to the page you desire... I have not played much with Acrobat javascript but I am positive you can accomplish this. You may want to look at this posting if you run into a problem when Acrobat navigates to the other page:
http://blogs.adobe.com/pdfdevjunkie/2008/09/how_do_you_close_a_floating_ri.php
To navigate to a URL in the browser you will encounter the Flash security dialog asking you to OK the link due to the Flash/Acrobat security model, but it works fine. In your SWF you can use NavigateToURL, getURL, URLRequest etc to navigate to an URL. Make sure the publish settings are set to "Local access only" and it should work fine, I do it all the time with every type of AS3 call I know to launch a URL.