[osflash] Policy Problem
karega.mccoy at gmail.com
Thu Mar 6 20:38:09 PST 2008
Tim you are going to have to create a an XML file named
crossdomain.xml that will establish a policy for your own
localdirectory. First ensure that you have the paths correctly
entered in your source code and then create the XML with the following
tags and content...
<!DOCTYPE cross-domain-policy SYSTEM
<allow-access-from domain="*" secure="true"/>
Note the most important tag in the markup, <allow-access-from
domain="*" secure="true"/>, this ensures that you are able to access
the content in the directory where the data is stored from any server
hosting your SWF. Be aware that allow-access-from domain="*" is a
wildcard so anyone else can access assets stored on the direct where
this file has been placed. To restrict access to specific domains
please enter the domain name where you plan to place your SWF where
the * is located.
The secure property of the tag notes that if the assets are located on
an server with https protocol that only a server with https protocol
may access those assets.
On 3/6/08, Timothy Garner <aussietmbo at gmail.com> wrote:
> Ok this is really strange and I hope someone out there has the answer.
> I'm using 3D planes and xml to play videos in Flash w/ GreatWhite.
> While testing in flash I get this error:
> "SecurityError: Error #2123: Security sandbox violation: BitmapData.draw:
> cannot access unknown URL. No policy files granted access."
> However if I publish the swf. and run it from the desktop or hardrive it
> runs perfectly. The VideoStreamMaterials changes and updates correctly.
> but then when I upload to my domain - it's stops functioning properly!
> Why does it work from my own harddrive and not from the web or in flash?
> I know this is a Security issue, just unsure how to solve it.
> Thanks in advance.
> Tim G
> osflash mailing list
> osflash at osflash.org
More information about the osflash