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

Flex 3 with Acrobat 9

rrsIPOV
Registered: Feb 19 2008
Posts: 14
Answered

We just (today) got a copy of Acrobat 9 Pro. We have some small Flash based (written in Flex 3) interactions that we want to insert into a PDF, these had previously worked when publishing with Acrobat 8 Pro, unfortunately that is no longer the case. Non-Flex based SWFs seem to work ok. Then to test further we downloaded Acrobat Reader 9 (on a second computer), and tested some of the old PDFs we'd created, and the Flex based movies no longer played there either!

What appears to happen is the Flex loading progress bar starts up, and then 'hangs' at approx. 1/3 completion. Anyone seen this before? We're putting together a test case that we can post, so hopefully I'll have that online soon.

My Product Information:
Acrobat Pro 9.0, Windows
rrsIPOV
Registered: Feb 19 2008
Posts: 14
As a follow up, here are some further details uncovered as we start to track this down.

1. Flash media embedded using Acrobat 9 only seems to playback inside Reader 9, Reader 8 just shows the poster for the media (along with a 'play' icon), even when PDF is set as compatible with Reader 8 and above (maybe we're just doing something wrong, here, but the file version does show as 1.7).

2. Simple Flex apps (like a 'hello world' we tested) seem to work when published with Acrobat 9 and played back in Reader 9, but not Reader 8.

3. For out app. - when published with Acrobat 8 this seems to work in both Reader 8 and 9, but when published with Acrobat 9 the behavior is as described above

I am wondering if it might not be that our app. attempts to initialize a LocalConnection object. I am going to test this out, but any links or advice would be welcome.

If anyone in interested, here are 2 links with samples (published with Acrobat Pro 9).

[url]http://demos.ipov.net/flex_in_pdf/test_simple_works.pdf[/url]

[url]http://demos.ipov.net/flex_in_pdf/test_complex_broken.pdf[/url]

To see a working example of the flex app. in a PDF you can view [url]http://demos.ipov.net/portal/portal_content/product_guides/Job%20Instruction%20Breakdown%20Sheet.pdf[/url]
rrsIPOV
Registered: Feb 19 2008
Posts: 14
Ok. It seems that we had a static reference in out code to create a LocalConnection object to send log data to the Alcon console if it was available. Seems that taking this out of our code allows it to run in Reader 9 when published by Acrobat Pro 9. Really, strange.
joshcorey
Registered: Jul 14 2008
Posts: 79
A note on compatibility with Reader when PDF is created with Richmedia in Acrobat 9:
If the Flash Tool or Video Tool is used in Acrobat 9 the viewer will have to be Reader 9 (or later) to view the Richmedia/Flash annotations. In order to create backward compatible PDF's in Acrobat 9 (with Richmedia) you would press the "Create Legacy Multimedia content" button from within the "Insert Flash" or "Insert Video" dialogs, this results in the same experience as adding multimedia in Acrobat 8 (which requires the media player to be on the users system for playback), it uses the old/legacy Multimedia tools. If that link is not used (or in Acrobat 9 Pro you choose media types supported by the older multimedia tools but not the new ones since there is no conversion to Flash in Pro, selecting these types will use the legacy tools) then the PDF should be viewed in Reader 9.

The other issue with LocalConnection object could be related to changes in the security sandbox in Acrobat 9, you may want to read some of the threads on the changes to security for Acrobat 9.
rrsIPOV
Registered: Feb 19 2008
Posts: 14
Hmm, I wondered if it wasn't something like that (I don't actually have a copy of acrobat pro on my machine to test). I will pass this along and see it we can't find the right settings.

On the localconnection - I figured it was a security sandbox issue; however most of the time flash is so good at "just continuing on" and ignoring/bypassing errors that it kind of surprised me to have it just 'stop' doing anything.
Dimitri
Expert
Registered: Nov 1 2005
Posts: 1389
Hi rrsIPOV,

Adobe has just published "Security for Flash Player Compatible Content in Acrobat 9" that you may find helpful.

http://www.adobe.com/devnet/acrobat/pdfs/acrobat_reader9_flash_security.pdf?devcon=f2

Acrobat 9 has it's own version of the Flash Player embedded and not all things that work with Flash Players in a web or network environment will work with the special Acrobat 9 Flash Player. According to this document LocalConnection is not allowed for SWFs hosted inside Acrobat.

Hope this helps,

Dimitri
WindJack Solutions
www.pdfscripting.com
www.windjack.com