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

Saving Flash Content

hammer09
Acrobat 9
Registered: May 19 2006
Posts: 15

I have a .swf file privided by a developer that when run in Flash player, the content will change each time you click a button and remembers how many times you clicked on it. (It's very basic but is for testing purposes). When I place this .swf file into a PDF and save the PDF. The .swf file displays in the PDF file but doesn't remember how many times you clicked on the run button and starts new when the PDF is re-opened.

The goal here is to be able to save anything that you do in the .swf file within the PDF file. Am I doing something wrong here? Is this even possible? Any help would be greatly appreciated.

Chad Chelius
Chelius Graphic Services
chad [at] cheliusgraphicservices [dot] com

My Product Information:
Acrobat Pro Extended 9.2, Macintosh
UVSAR
Expert
Registered: Oct 29 2008
Posts: 1357
Your original SWF will be using the local storage system (Flash Player's equivalent to cookies), which is disabled inside Acrobat and Reader for security reasons. You'll have to get your developer to rewrite the SWF's Actionscript to use the JavaScript-linked state saving features available inside a PDF - for info see Joel's blog entries:

http://blogs.adobe.com/pdfdevjunkie/saving_the_state_of_swf_conten.php

http://pdfdevjunkie.host.adobe.com/RMA2_stateSave.shtml

Obviously this process "dirties" the PDF, so users with Adobe Reader must be given permission to save with changes. It's also a document-based memory, not a user-based one. If I save a state and then email the PDF to you, it opens on your computer with my last saved state. In theory you could code round that, but it's not trivial as Acrobat JavaScript has no in-document access to the user's identity, computer name, etc.