PDA

View Full Version : Local access between swf - Java - HTML


digicraft63
12-03-2008, 05:00 PM
Hello!

I am trying to establish access between a swf file and the HTML file that the SWF file is residing. I have been following the Adobeīs example on line:

http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_15683&sliceId=1#exampleas3

I get that to work if I upload the swf and HTML to the internet server but not when I test it localy.

It seems like the settings for allowNetworking:

AC_FL_RunContent(
...
'allowNetworking', 'all',
...
); //end AC code

have effect when I test from the server. The only setting that will permit contact between SWF and HTML doc is "all".

Bur "all" does not give permision localy.

I donīt want to upload the files all the time to see if it works. I want to be able to work with this localy first.

How do I get permision to test this localy?

corbo950
12-04-2008, 01:16 AM
try adding this line to your application "Security.AllowDomain("*")"

digicraft63
12-04-2008, 01:24 AM
Thanks for answering.

No adding "Security.AllowDomain("*")" to the flash file didnīt help.

digicraft63
12-04-2008, 08:41 AM
I finaly happend to solve this problem myself.
Obviously you can set security levels to the Flash Player 9 using a web interface.
http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html
This link abels you to select the folder were the flash and HTML files resides so that folder becomes trusted localy.

That also mean that I could remove AC_FL_RunContent(
...
'allowNetworking', 'all',
...
); //end AC code

and

"Security.AllowDomain("*")"

from the flash file.

Nice when a problem is solved and you can go on producing something again.
Thank you! Myself.