Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Open local .swf from button click event

lllimited
Level 3
Level 3

Hi guys,

My brain is on holiday (again); i have been through this before but cant recall the outcome.

I have forms with buttons that will (if we ever get them completed) load user guides/help .swf files from our server.

We are using a simple:

app.launchURL("https://www.name.com/attachments/xyz1.swf", true)

click event to do this. works fine.

but some of the .swf's are big, and for anyone we do a custom setup for (which seems a long way in the future) we would like to be able to load the .swf's locally (internet is still slow where we are):

So, short question, can a livecycle pdf load/play a .swf locally (say from pdfswf.dir on c: for arguments sake) or is that a security issue? I know flash has issues with security in this area, but hoped livecycle would be ok with it.

thanks guys

1 Accepted Solution
Niall_O_Donovan
Correct answer by
Level 10
Level 10

Not sure whether this is an issue: http://blogs.adobe.com/asset/2010/07/update_on_functionality_change.html

I am using Acrobat v9.3.3 here.

N.

View solution in original post

3 Replies
Niall_O_Donovan
Level 10
Level 10

Hi,

I think you are going to come up against a security issue.

I tried:

app.launchURL("file:///....swf", true);

and

app.openDoc("path to file.swf");

Both threw up a security error in the Javascript Console. I tried changing settings in Acrobat preferences but could not get it to work.

"NotAllowedError: Security settings prevent access to this property or method.

App.launchURL:1:XFA:form1[0]:page1[0]:gotoURL4[0]:click"

Maybe some one will be able to shed better light on the problem.

Good luck,

Niall

Niall_O_Donovan
Correct answer by
Level 10
Level 10

Not sure whether this is an issue: http://blogs.adobe.com/asset/2010/07/update_on_functionality_change.html

I am using Acrobat v9.3.3 here.

N.

View solution in original post

lllimited
Level 3
Level 3

thanks Niall,

will have to work around i guess - to be of any use in the distributed form we'd need to be sure it would work for everyone....