Skip to main content
Participating Frequently
March 3, 2009
Question

Javascript print button problem in C4

  • March 3, 2009
  • 2 replies
  • 645 views
Hi Everyone,

I'm currently using Captivate 4 and would like to allow users of my tutorial to print off slides. I created a button which executes javascript to do this. The problem is not that this doesn't work at all, it's just that it isn't working when I publish to Flash player versions higher than 7. Any ideas you might be able to share with me on how to fix this will be very welcome.

Many thanks.
This topic has been closed for replies.

2 replies

Participating Frequently
March 4, 2009
Thank you so much. You are a genius.

This worked.
Known Participant
March 3, 2009
I suspect that the problem has to do with the added security included in Flash 8 and above that restricts javascript. If you search the flash player KnowledgeBase on Adobe.com you'll find more detailed information about fixes, but here is what worked for my Javascripted items.

Find your Program Files > Adobe > Adobe Captivate 4 > Templates > Publish folder. Within the folder is a standard.htm file. Open this file (for this simple task, i just use notepad). In the script section, add...

so.addParam("allowScriptAccess", "always");

you'll see other similar param declarations. It doesn't matter the order.

You can edit the individual .htm file if you want to test this first.

That should do it.

Here is the KB article that discusses the security features in greater detail:

http://www.adobe.com/devnet/flashplayer/articles/secure_swf_apps_04.html