Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Data Integration / September 2005



Tip: Looking for answers? Try searching our database.

Shared libraries and security/domains

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
panorezo - 29 Sep 2005 01:02 GMT
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.
SimonTheSwift - 29 Sep 2005 15:18 GMT
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
Dr. DOT - 30 Sep 2005 13:43 GMT
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 :)
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.