all groups > flash data integration > september 2005 >
You're in the

flash data integration

group:

Shared libraries and security/domains



Shared libraries and security/domains panorezo
9/29/2005 12:02:40 AM
flash data integration: Hello !!

My problem is the following :

A.swf is on client side. It use ./content/__library.swf as shared library.

B.swf is on server side. It use __library.swf too


When I try to dynamically load B.swf in A.swf (via loadMovie), I encounted a
sandbox security violation :

Error opening URL "file:///E|/Projects/test/empty"
*** security Sandbox violation ***
connection interupted on file:///E|/Projects/test/./content/__library.swf -
restricted operation from
http://127.0.0.1/remotings/test/loadExternalContent.php


empty is the clip used to link library.
loadExternalContent.php is the file who send the swf on the client-side, so
consider it as B.swf


I have tried some tests with System.security.allowDomain, but no good
results... If anyone as a solution...

Thanks for any response.
Re: Shared libraries and security/domains SimonTheSwift
9/29/2005 2:18:49 PM
Hi there,

there is an article on changes in security in Flash Player 8 by Deneb Meketa.
I am quoting:

Local sandboxes: By default, local SWFs can no longer contact the Internet,
perform HTTP communication, or communicate with local HTML files. If SWFs of
version 7 or earlier attempt to perform any of these actions, users will see a
warning dialog box that informs them that it cannot be done. The appearance of
the dialog box, and breakages in existing content, can be remedied either by
end users or by Flash developers by putting appropriate permissions in place.

Here is a link to that article:
http://www.macromedia.com/devnet/flash/articles/fplayer_security.html


I hope you will find your answer there. There was also a whitepaper on
security in Flash Player.

Simon
Re: Dynamic Text Dr. DOT
9/30/2005 12:43:35 PM
Found the answer:

In your ActionScript you need the following simple command in Frame 1:

loadVariables(_root.textfile,"");

where "textfile" is the name on the PARAM element:

<param name="loadVars" value="textfile=A sample message">

That's it -- easy once you see it :)
AddThis Social Bookmark Button