**Hiya Fellas!
Someone phoned me up that thought I was a Flash expert and had this problem:**
"We create digital magazines....it used to be done by an overseas company but we decided to do it ourselves...this month it was done totally in-house and everything works fine until you get to a page that has an embedded video in it. i get a security sandbox violation listed in the attachment below
*** Security Sandbox Violation *** SecurityDomain 'http://www.ogm.co.za/users/admin/october/page55.swf' tried to access incompatible context 'file:///C|/Documents%20and%20Settings/PrishanthaS/Desktop/october/october.swf'
....the flash page works fine until it is uploaded to the web. Please have a look at it and let me know what can be done to resolve this issue because the magazine is already online but without the videos.... go to www.ogm.co.za/users/admin/october/october.swf and have a look at page 43 and page 55."
I replied with what I thought was the problem:
"For security reasons, a Macromedia Flash movie playing in a web browser is not allowed to access data that resides outside the exact web domain from which the SWF originated.
Your best bet is to set up a cross-domain policy file.
make a new text file named "crossdomain.xml" to allow everyone use this text:
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
Adobe has it fairly well documented in this TechNote
http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14213&sliceId=1
Hope this helps you out!"
They say it still doesn't work. Why the hell are they making one huge SWF with embedded movies in them anyway? If anyone of you can help with suggestions I would greatly appreciate it! Thanks!
I cant check the actual mag, as it requires a username/password.
However, the video on pageshttp://www.ogm.co.za/users/admin/october/page55.swf andhttp://www.ogm.co.za/users/admin/october/page43.swf work for me in Firefox and IE7
That security sandbox warning typically shows up in the dev environment when you have the parent clip loading in a child via a fully qualified URL ( ie, with http :// and the domain ) and the child then tries to load a file using a relative path (eg, ../somefile.flv)
The other problem (with clients, mostly) is that they don't know how to clear the cache, so work that you may have done will not be seen by them until you patiently explain for the 10000th time how to clear the cache.
As the "page55.swf" file is in the same folder as the main movie (october.fla) there should be no problems beyond the caching.
Edit- as a side note, the text on those pages is pretty hard to read. Suggest to your friend that they change fonts, or make all text dynamic, and preferably ( though this is supposed to only refer to pixel fonts, in my experience it does help) place the textarea on a whole pixel value - ie, instead of being at x,y of 100.23, 100,34 it is placed at exactly 100,100
Thanks Scuddy!
I was cringing at that text as well! I hope they leave me alone now!
Eish..
page43.swf 02-Oct-2007 09:51 1.6M
page55.swf 02-Oct-2007 12:09 1.8M
1.8Mb in South Africa?????
I know! I don't think they know what is going on! Check out the intro Flash thingy for www.bellagiogroup.co.za it's over 8mb!!!! Very unnecessary!